Skip to content

Commit

Permalink
Fix scoping in snake_oil test fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
sondreso committed Oct 13, 2023
1 parent 620c0cf commit 5c8ef0a
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,20 +271,20 @@ def _run_snake_oil(source_root):
else:
print(line, end="")

parser = ArgumentParser(prog="test_main")
parsed = ert_parser(
parser,
[
ENSEMBLE_EXPERIMENT_MODE,
"--current-case",
"default_0",
"snake_oil.ert",
],
)
FeatureToggling.update_from_args(parsed)
parser = ArgumentParser(prog="test_main")
parsed = ert_parser(
parser,
[
ENSEMBLE_EXPERIMENT_MODE,
"--current-case",
"default_0",
"snake_oil.ert",
],
)
FeatureToggling.update_from_args(parsed)

run_cli(parsed)
FeatureToggling.reset()
run_cli(parsed)
FeatureToggling.reset()


@pytest.fixture
Expand Down

0 comments on commit 5c8ef0a

Please sign in to comment.