From a3491ed226807966d7be17f4d0f2799d089f5d6f Mon Sep 17 00:00:00 2001 From: Anthony Almarza Date: Wed, 26 Jun 2019 17:53:41 -0400 Subject: [PATCH 1/3] keeping the docs honest --- behave_django/environment.py | 2 +- tests/acceptance/environment.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/behave_django/environment.py b/behave_django/environment.py index 3ff2289..72d0fac 100644 --- a/behave_django/environment.py +++ b/behave_django/environment.py @@ -120,7 +120,7 @@ def run_hook(self, name, context, *args): django_test_runner.setup_testclass(context) django_test_runner.setup_fixtures(context) django_test_runner.setup_test(context) - behave_run_hook(self, 'django_ready', context) + behave_run_hook(self, 'django_ready', context, *args) if name == 'after_scenario': django_test_runner.teardown_test(context) diff --git a/tests/acceptance/environment.py b/tests/acceptance/environment.py index 4738697..ee3e53b 100644 --- a/tests/acceptance/environment.py +++ b/tests/acceptance/environment.py @@ -24,5 +24,5 @@ def before_scenario(context, scenario): context.multi_db = True -def django_ready(context): +def django_ready(context, scenario): context.django = True From 7f2e785391ad58ae74b636da789777b1940b234b Mon Sep 17 00:00:00 2001 From: Anthony Almarza Date: Wed, 26 Jun 2019 18:20:33 -0400 Subject: [PATCH 2/3] lock down bandit version --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index fff59f4..a57439d 100644 --- a/tox.ini +++ b/tox.ini @@ -28,7 +28,7 @@ commands = {envpython} tests/manage.py behave --tags=~@failing --format=progress [testenv:bandit] -deps = bandit +deps = bandit==1.5.1 commands = bandit -r --ini tox.ini [testenv:clean] From 3e5c24b9e2a15d37b7d96161e3b4d2b11bb0fcd0 Mon Sep 17 00:00:00 2001 From: Anthony Almarza Date: Thu, 27 Jun 2019 14:45:44 -0400 Subject: [PATCH 3/3] Update tox.ini --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index a57439d..f113c9a 100644 --- a/tox.ini +++ b/tox.ini @@ -28,7 +28,7 @@ commands = {envpython} tests/manage.py behave --tags=~@failing --format=progress [testenv:bandit] -deps = bandit==1.5.1 +deps = bandit<1.6 commands = bandit -r --ini tox.ini [testenv:clean]