Browse Source

Use django-dynamic-fixture for tests

producao
Marcio Mazza 10 years ago
parent
commit
3f11d13af2
  1. 1
      requirements/dev.txt
  2. 5
      sigi/settings/base.py

1
requirements/dev.txt

@ -5,6 +5,7 @@ coverage==3.7.1
pytest-django==2.7.0
WebTest==2.0.16
django-webtest==1.7.7
django-dynamic-fixture==1.7.0
# para desevolvimento
django-debug-toolbar==1.2.1

5
sigi/settings/base.py

@ -112,4 +112,9 @@ MEDIA_URL = '/media/'
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
# Using pytest directly (without a test runner)
TEST_RUNNER = None
# Validate arguments in django-dynamic-fixture
# http://django-dynamic-fixture.readthedocs.org/en/latest/more.html?highlight=ddf_validate_args#validate-arguments-new-in-1-5-0
DDF_VALIDATE_ARGS = True

Loading…
Cancel
Save