Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with FastFixtureTestCase #272

Open
Kianoosh76 opened this issue Sep 10, 2016 · 0 comments
Open

Error with FastFixtureTestCase #272

Kianoosh76 opened this issue Sep 10, 2016 · 0 comments

Comments

@Kianoosh76
Copy link

When I want to use FastFixtureTestCase and run ./manage.py test --with-fixture-bundling I face this error:

Creating test database for alias 'default'...
Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "//anaconda/envs/lyan/lib/python3.5/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
    utility.execute()
  File "//anaconda/envs/lyan/lib/python3.5/site-packages/django/core/management/__init__.py", line 345, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "//anaconda/envs/lyan/lib/python3.5/site-packages/django/core/management/commands/test.py", line 30, in run_from_argv
    super(Command, self).run_from_argv(argv)
  File "//anaconda/envs/lyan/lib/python3.5/site-packages/django/core/management/base.py", line 348, in run_from_argv
    self.execute(*args, **cmd_options)
  File "//anaconda/envs/lyan/lib/python3.5/site-packages/django/core/management/commands/test.py", line 74, in execute
    super(Command, self).execute(*args, **options)
  File "//anaconda/envs/lyan/lib/python3.5/site-packages/django/core/management/base.py", line 399, in execute
    output = self.handle(*args, **options)
  File "//anaconda/envs/lyan/lib/python3.5/site-packages/django/core/management/commands/test.py", line 90, in handle
    failures = test_runner.run_tests(test_labels)
  File "//anaconda/envs/lyan/lib/python3.5/site-packages/django_nose/runner.py", line 303, in run_tests
    result = self.run_suite(nose_argv)
  File "//anaconda/envs/lyan/lib/python3.5/site-packages/django_nose/runner.py", line 241, in run_suite
    addplugins=plugins_to_add)
  File "//anaconda/envs/lyan/lib/python3.5/site-packages/nose/core.py", line 121, in __init__
    **extra_args)
  File "//anaconda/envs/lyan/lib/python3.5/unittest/main.py", line 94, in __init__
    self.runTests()
  File "//anaconda/envs/lyan/lib/python3.5/site-packages/nose/core.py", line 207, in runTests
    result = self.testRunner.run(self.test)
  File "//anaconda/envs/lyan/lib/python3.5/site-packages/nose/core.py", line 50, in run
    wrapper = self.config.plugins.prepareTest(test)
  File "//anaconda/envs/lyan/lib/python3.5/site-packages/nose/plugins/manager.py", line 99, in __call__
    return self.call(*arg, **kw)
  File "//anaconda/envs/lyan/lib/python3.5/site-packages/nose/plugins/manager.py", line 167, in simple
    result = meth(*arg, **kw)
  File "//anaconda/envs/lyan/lib/python3.5/site-packages/django_nose/plugin.py", line 262, in prepareTest
    test = self._bundle_fixtures(test)
  File "//anaconda/envs/lyan/lib/python3.5/site-packages/django_nose/plugin.py", line 256, in _bundle_fixtures
    return suite_sorted_by_fixtures(test)
  File "//anaconda/envs/lyan/lib/python3.5/site-packages/django_nose/plugin.py", line 222, in suite_sorted_by_fixtures
    process_tests(suite, bucketer.add)
  File "//anaconda/envs/lyan/lib/python3.5/site-packages/django_nose/utils.py", line 36, in process_tests
    process_tests(t, process)
  File "//anaconda/envs/lyan/lib/python3.5/site-packages/django_nose/utils.py", line 33, in process_tests
    process(suite)
  File "//anaconda/envs/lyan/lib/python3.5/site-packages/django_nose/plugin.py", line 114, in add
    key = (frozenset(getattr(test.context, 'fixtures', [])),
TypeError: 'NoneType' object is not iterable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant