From 3f11d13af2d02227f78d181f7e494a9f5bbd085f Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Mon, 6 Oct 2014 13:32:55 -0300 Subject: [PATCH] Use django-dynamic-fixture for tests --- requirements/dev.txt | 1 + sigi/settings/base.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/requirements/dev.txt b/requirements/dev.txt index 4cdebc1..c657482 100644 --- a/requirements/dev.txt +++ b/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 diff --git a/sigi/settings/base.py b/sigi/settings/base.py index d35bea5..7bc4101 100644 --- a/sigi/settings/base.py +++ b/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