diff --git a/behave_django/management/commands/behave.py b/behave_django/management/commands/behave.py index 5903cb0..fd9aab0 100644 --- a/behave_django/management/commands/behave.py +++ b/behave_django/management/commands/behave.py @@ -5,7 +5,7 @@ from importlib import import_module from behave.__main__ import main as behave_main -from behave.configuration import options as behave_options +from behave.configuration import OPTIONS as behave_options from django.core.management.base import BaseCommand from behave_django.environment import monkey_patch_behave diff --git a/requirements.txt b/requirements.txt index 9b2c5f8..3b1e334 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ beautifulsoup4 -behave[toml]@git+http://github.com/behave/behave.git@v1.2.7.dev3 # behave>=1.2.7 +behave[toml]@git+http://github.com/behave/behave.git@v1.2.7.dev4 # behave>=1.2.7 django>=3.2 diff --git a/tests/unit/test_cli.py b/tests/unit/test_cli.py index 292afb7..3347612 100644 --- a/tests/unit/test_cli.py +++ b/tests/unit/test_cli.py @@ -90,13 +90,13 @@ def test_command_import_dont_patch_behave_options(self): reload(behave.configuration) behave_options_backup = [ (first, second.copy()) - for (first, second) in behave.configuration.options + for (first, second) in behave.configuration.OPTIONS ] import behave_django.management.commands.behave reload(behave_django.management.commands.behave) - assert behave.configuration.options == behave_options_backup + assert behave.configuration.OPTIONS == behave_options_backup def test_conflicting_options_should_get_prefixed(self): from behave_django.management.commands.behave import Command