Skip to content
Snippets Groups Projects
Commit 3a8cc217 authored by Tobias Ingebrigt Ørstad's avatar Tobias Ingebrigt Ørstad
Browse files

Add comments to separate different test

parent 0091cf71
No related branches found
No related tags found
1 merge request!20Dev
Pipeline #114258 passed
......@@ -14,6 +14,11 @@ from unittest import skip
from users.models import User
from datetime import datetime
# -------------------------------------------------------------------------------------------------
# Boundary value tests
# -------------------------------------------------------------------------------------------------
class RegisterUsernameBoundaryTestCase(TestCase):
def setUp(self):
......@@ -441,6 +446,11 @@ class UserSerializerTestCase(TestCase):
def tearDown(self):
return super().tearDown()
# -------------------------------------------------------------------------------------------------
# 2 Way domain tests
# -------------------------------------------------------------------------------------------------
class Register2WayDomainTestCase(TestCase):
#Start by defining datatypes for each value of the inputs we want to test
......@@ -716,4 +726,4 @@ class Register2WayDomainTestCase(TestCase):
status = self.get_status_for_posts(field1,value1,field2,value2)
try: self.assertEquals((status == 201),expectedstatus)
except AssertionError: failures.append({field1:value1,field2:value2})
print(failures)
\ No newline at end of file
print(failures)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment