Skip to content

Commit

Permalink
Remove obsolete pytest fixture (no more Singleton)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessesnyder committed Nov 11, 2024
1 parent c8fc00d commit d031c88
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,20 +183,7 @@ def pubsub(game):


@pytest.fixture
def fresh_gridworld():
from dlgr.griduniverse.experiment import Gridworld

if hasattr(Gridworld, "instance"):
delattr(Gridworld, "instance")

yield

if hasattr(Gridworld, "instance"):
delattr(Gridworld, "instance")


@pytest.fixture
def gridworld(fresh_gridworld, active_config, item_config):
def gridworld(active_config, item_config):
from dlgr.griduniverse.experiment import Gridworld

gw = Gridworld(
Expand All @@ -206,7 +193,7 @@ def gridworld(fresh_gridworld, active_config, item_config):


@pytest.fixture
def exp(db_session, active_config, fresh_gridworld):
def exp(db_session, active_config):
from dallinger.experiments import Griduniverse

gu = Griduniverse(db_session)
Expand Down

0 comments on commit d031c88

Please sign in to comment.