15
0

- Add fix-tests.patch allowing use of pytest (gh#Pylons/colander#210)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-colander?expand=0&rev=14
This commit is contained in:
2020-04-17 08:13:52 +00:00
committed by Git OBS Bridge
parent 9b0e826d67
commit de23052252
3 changed files with 58 additions and 2 deletions

47
fix-tests.patch Normal file
View File

@@ -0,0 +1,47 @@
--- a/colander/tests/test_colander.py
+++ b/colander/tests/test_colander.py
@@ -4156,7 +4156,7 @@ class TestTupleSchema(unittest.TestCase)
self.assertEqual(schema.children[0], node)
-class TestFunctional(object):
+class FunctionalBase(object):
def test_deserialize_ok(self):
import colander.tests
@@ -4433,7 +4433,7 @@ class TestFunctional(object):
self.assertEqual(errors, expected)
-class TestImperative(unittest.TestCase, TestFunctional):
+class TestImperative(unittest.TestCase, FunctionalBase):
def _makeSchema(self, name='schema'):
import colander
@@ -4472,7 +4472,7 @@ class TestImperative(unittest.TestCase,
return schema
-class TestDeclarative(unittest.TestCase, TestFunctional):
+class TestDeclarative(unittest.TestCase, FunctionalBase):
def _makeSchema(self, name='schema'):
import colander
@@ -4503,7 +4503,7 @@ class TestDeclarative(unittest.TestCase,
return schema
-class TestUltraDeclarative(unittest.TestCase, TestFunctional):
+class TestUltraDeclarative(unittest.TestCase, FunctionalBase):
def _makeSchema(self, name='schema'):
import colander
@@ -4547,7 +4547,7 @@ class TestUltraDeclarative(unittest.Test
return schema
-class TestDeclarativeWithInstantiate(unittest.TestCase, TestFunctional):
+class TestDeclarativeWithInstantiate(unittest.TestCase, FunctionalBase):
def _makeSchema(self, name='schema'):
import colander