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

Fix FastFixtureTestCase to support testcases without fixtures. #200

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

teeberg
Copy link

@teeberg teeberg commented Apr 13, 2015

Since Django 1.7, using the FastFixtureTestCase without specifying a list of fixtures to use raises this exception:

Traceback (most recent call last):
  File "nose/suite.py", line 209, in run
    self.setUp()
  File "nose/suite.py", line 292, in setUp
    self.setupContext(ancestor)
  File "nose/suite.py", line 315, in setupContext
    try_run(context, names)
  File "nose/util.py", line 471, in try_run
    return func()
  File "django_nose/testcases.py", line 49, in setUpClass
    cls._fixture_setup()
  File "django_nose/testcases.py", line 72, in _fixture_setup
    'database': db})
TypeError: call_command() argument after * must be a sequence, not NoneType

triggered here:

call_command('loaddata', *cls.fixtures, **{'verbosity': 0,
                                           'commit': False,
                                           'database': db})

Since Django 1.7 sets fixtures to None by default, django-nose should support this possibilty too. :-)

@jwhitlock
Copy link
Contributor

I also think the way forward is to re-sync w/ the current Django code. I'd like tests for FastFixtureTestCase (issue #220) before I start merging fixes.

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

Successfully merging this pull request may close these issues.

2 participants