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 diff --git a/tox.ini b/tox.ini index fff59f4..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 +deps = bandit<1.6 commands = bandit -r --ini tox.ini [testenv:clean]