1. Jesper Noehr
  2. django-piston
  3. Issues
Issue #205 new

test cases failure because fixtures are missing

Marco De Paoli
created an issue

{{{ python manage.py test piston }}}

Output {{{ DoesNotExist: User matching query does not exist. }}}

I found that fixtures folder does not exist in piston folder

Workaround: {{{ cd site-packages/piston mkdir fixtures cd fixtures wget https://bitbucket.org/jespern/django-piston/raw/4fe8af1db59d/piston/fixtures/models.json }}}

Comments (3)

  1. Stephen Paulger

    I think this is a setup issue as the fixtures are present in the repo. Creating a fixtures directory and putting the fixtures in it within the installed piston directory makes the tests pass again.

    I have another issue with the fixtures in that the names are not unique enough. "models.json" for example is likely to be used in other django apps and in that situation one of the apps would end up loading the wrong fixture.

  2. Log in to comment