summaryrefslogtreecommitdiff
path: root/tests/test_declarations.py
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2014-11-18 00:35:19 +0100
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2014-11-18 00:39:52 +0100
commit336ea5ac8b2d922fb54f99edd55d4773dd126934 (patch)
treef46ee3cbbd9f1d6ab4ad4af122b66371cdc2eb85 /tests/test_declarations.py
parent13d310fa14f4e4b9a559f8b7887f2a2492357013 (diff)
downloadfactory-boy-336ea5ac8b2d922fb54f99edd55d4773dd126934.tar
factory-boy-336ea5ac8b2d922fb54f99edd55d4773dd126934.tar.gz
Remove deprecated features.
This disables the ``FACTORY_FOR`` syntax and related parameters, that should be declared through ``class Meta``.
Diffstat (limited to 'tests/test_declarations.py')
-rw-r--r--tests/test_declarations.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/test_declarations.py b/tests/test_declarations.py
index 86bc8b5..18a4cd4 100644
--- a/tests/test_declarations.py
+++ b/tests/test_declarations.py
@@ -22,7 +22,6 @@
import datetime
import itertools
-import warnings
from factory import declarations
from factory import helpers
@@ -207,20 +206,6 @@ class FactoryWrapperTestCase(unittest.TestCase):
datetime.date = orig_date
-class RelatedFactoryTestCase(unittest.TestCase):
-
- def test_deprecate_name(self):
- with warnings.catch_warnings(record=True) as w:
-
- warnings.simplefilter('always')
- f = declarations.RelatedFactory('datetime.date', name='blah')
-
- self.assertEqual('blah', f.name)
- self.assertEqual(1, len(w))
- self.assertIn('RelatedFactory', str(w[0].message))
- self.assertIn('factory_related_name', str(w[0].message))
-
-
class PostGenerationMethodCallTestCase(unittest.TestCase):
def setUp(self):
self.obj = mock.MagicMock()