diff --git a/tests/django/validators.py b/tests/django/validators.py index 8393fd6..9585b32 100644 --- a/tests/django/validators.py +++ b/tests/django/validators.py @@ -20,7 +20,7 @@ def tearDownClass(cls): Group.objects.get(name='TEST_IT').delete() Group.objects.get(name='TEST_IT_2').delete() - def base_validator(self): + def test_base_validator(self): class Base(djburger.v.b.Form): name = djburger.f.CharField(max_length=20) mail = djburger.f.EmailField() @@ -33,7 +33,7 @@ class Base(djburger.v.b.Form): v = Base(request=None, data=data) self.assertFalse(v.is_valid()) - def wrapper_validator(self): + def test_wrapper_validator(self): class Base(djburger.f.Form): name = djburger.f.CharField(max_length=20) mail = djburger.f.EmailField() diff --git a/tests/djside.py b/tests/djside.py index 9d99f79..b5f40ad 100644 --- a/tests/djside.py +++ b/tests/djside.py @@ -23,7 +23,7 @@ def tearDownClass(cls): Group.objects.get(name='TEST_IT').delete() Group.objects.get(name='TEST_IT_2').delete() - def pyschemes(self): + def test_pyschemes(self): with self.subTest(src_text='pyschemes'): v = djburger.v.c.PySchemes( {'name': str, 'id': int}, @@ -32,7 +32,7 @@ def pyschemes(self): v = v(request=None, data=self.obj) self.assertTrue(v.is_valid()) - def marshmallow(self): + def test_marshmallow(self): with self.subTest(src_text='marshmallow base'): class Base(djburger.v.b.Marshmallow): name = marshmallow.fields.Str() @@ -45,7 +45,7 @@ class Base(marshmallow.Schema): v = Wrapped(request=None, data=self.obj) self.assertTrue(v.is_valid()) - def rest(self): + def test_rest(self): with self.subTest(src_text='rest framework base'): class Base(djburger.v.b.RESTFramework): name = rest_framework.serializers.CharField(max_length=20) diff --git a/tests/marshmallow.py b/tests/marshmallow.py index 9a1a090..273da39 100644 --- a/tests/marshmallow.py +++ b/tests/marshmallow.py @@ -6,7 +6,7 @@ class MarshmallowValidatorsTest(unittest.TestCase): - def base_validator(self): + def test_base_validator(self): # BASE class Base(djburger.v.b.Marshmallow): name = marshmallow.fields.Str() @@ -20,7 +20,7 @@ class Base(djburger.v.b.Marshmallow): v = Base(request=None, data=data) self.assertFalse(v.is_valid()) - def wrapper_validator(self): + def test_wrapper_validator(self): class Base(marshmallow.Schema): name = marshmallow.fields.Str() mail = marshmallow.fields.Email() diff --git a/tests/pyschemes.py b/tests/pyschemes.py index 633bed4..0df9fec 100644 --- a/tests/pyschemes.py +++ b/tests/pyschemes.py @@ -6,7 +6,7 @@ class PySchemesValidatorsTest(unittest.TestCase): - def base_validator(self): + def test_base_validator(self): # BASE with self.subTest(src_text='base pass'): v = djburger.v.c.PySchemes([str, 2, int]) @@ -23,7 +23,7 @@ def base_validator(self): v.is_valid() self.assertEqual(v.cleaned_data, 3) - def wrapper_validator(self): + def test_wrapper_validator(self): with self.subTest(src_text='base pass'): v = djburger.v.w.PySchemes(PySchemes([str, 2, int])) v = v(request=None, data=['3', 2, 4]) diff --git a/tests/rest.py b/tests/rest.py index 3670866..a91412a 100644 --- a/tests/rest.py +++ b/tests/rest.py @@ -5,7 +5,7 @@ class RestValidatorsTest(unittest.TestCase): - def base_validator(self): + def test_base_validator(self): # BASE class Base(djburger.v.b.RESTFramework): name = rest_framework.serializers.CharField(max_length=20) @@ -19,7 +19,7 @@ class Base(djburger.v.b.RESTFramework): v = Base(request=None, data=data) self.assertFalse(v.is_valid()) - def wrapper_validator(self): + def test_wrapper_validator(self): class Base(rest_framework.serializers.Serializer): name = rest_framework.serializers.CharField(max_length=20) mail = rest_framework.serializers.EmailField()