Skip to content

Commit

Permalink
Fix state leakage between integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MetRonnie committed Jul 31, 2024
1 parent e63613c commit e59aeac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

from cylc.flow.cfgspec.glbl_cfg import glbl_cfg
from cylc.flow.cfgspec.globalcfg import SPEC
from cylc.flow.graphnode import GraphNodeParser
from cylc.flow.parsec.config import ParsecConfig
from cylc.flow.parsec.validate import cylc_config_validate
from cylc.flow import flags
Expand All @@ -33,6 +34,8 @@ def test_reset():
"""Reset global state before all tests."""
flags.verbosity = 0
flags.cylc7_back_compat = False
# Reset graph node parser singleton:
GraphNodeParser.get_inst().clear()


@pytest.fixture(scope='module')
Expand Down

0 comments on commit e59aeac

Please sign in to comment.