Skip to content

Commit

Permalink
✅ Fix fixture scope renamed from loop_scope
Browse files Browse the repository at this point in the history
Signed-off-by: ff137 <[email protected]>
  • Loading branch information
ff137 committed Feb 13, 2025
1 parent a904e4a commit ceabb3a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions demo/playground/examples/tests/test_mediator_ping_agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@
logger.info("start testing mediated connections...")


@pytest.fixture(loop_scope="session")
@pytest.fixture(scope="session")
def faber():
"""faber agent fixture."""
logger.info(f"faber = {FABER}")
yield Agent(FABER)


@pytest.fixture(loop_scope="session")
@pytest.fixture(scope="session")
def alice():
"""resolver agent fixture."""
logger.info(f"alice = {ALICE}")
yield Agent(ALICE)


@pytest.fixture(loop_scope="session")
@pytest.fixture(scope="session")
def multi_one():
"""resolver agent fixture."""
agent = Agent(MULTI)
Expand All @@ -42,7 +42,7 @@ def multi_one():
yield agent


@pytest.fixture(loop_scope="session")
@pytest.fixture(scope="session")
def mediation_invite():
invitation_url = os.getenv("MEDIATOR_INVITATION_URL")
logger.info(f"MEDIATOR_INVITATION_URL = {invitation_url}")
Expand Down Expand Up @@ -97,23 +97,23 @@ def initialize_mediation(agent: Agent, invitation):
return result


@pytest.fixture(loop_scope="session")
@pytest.fixture(scope="session")
def faber_mediator(faber, mediation_invite):
logger.info("faber_mediator...")
result = initialize_mediation(faber, mediation_invite)
logger.info(f"...faber_mediator = {result}")
yield result


@pytest.fixture(loop_scope="session")
@pytest.fixture(scope="session")
def alice_mediator(alice, mediation_invite):
logger.info("alice_mediator...")
result = initialize_mediation(alice, mediation_invite)
logger.info(f"...alice_mediator = {result}")
yield result


@pytest.fixture(loop_scope="session")
@pytest.fixture(scope="session")
def multi_one_mediator(multi_one, mediation_invite):
logger.info("multi_one_mediator...")
result = initialize_mediation(multi_one, mediation_invite)
Expand Down
14 changes: 7 additions & 7 deletions demo/playground/examples/tests/test_ping_agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
from . import ALICE, FABER, MULTI, Agent, logger


@pytest.fixture(loop_scope="session")
@pytest.fixture(scope="session")
def faber():
"""faber agent fixture."""
yield Agent(FABER)


@pytest.fixture(loop_scope="session")
@pytest.fixture(scope="session")
def alice():
"""resolver agent fixture."""
yield Agent(ALICE)


@pytest.fixture(loop_scope="session")
@pytest.fixture(scope="session")
def multi_one():
"""resolver agent fixture."""
agent = Agent(MULTI)
Expand All @@ -35,7 +35,7 @@ def multi_one():
yield agent


@pytest.fixture(loop_scope="session", autouse=True)
@pytest.fixture(scope="session", autouse=True)
def alice_faber_connection(faber, alice):
"""Established connection filter."""
logger.info("faber create invitation to alice")
Expand All @@ -48,7 +48,7 @@ def alice_faber_connection(faber, alice):
return result


@pytest.fixture(loop_scope="session", autouse=True)
@pytest.fixture(scope="session", autouse=True)
def faber_alice_connection(faber, alice):
"""Established connection filter."""
logger.info("alice create invitation to faber")
Expand All @@ -61,7 +61,7 @@ def faber_alice_connection(faber, alice):
return result


@pytest.fixture(loop_scope="session", autouse=True)
@pytest.fixture(scope="session", autouse=True)
def alice_multi_one_connection(multi_one, alice):
"""Established connection filter."""
logger.info("multi_one create invitation to alice")
Expand All @@ -74,7 +74,7 @@ def alice_multi_one_connection(multi_one, alice):
return result


@pytest.fixture(loop_scope="session", autouse=True)
@pytest.fixture(scope="session", autouse=True)
def multi_one_alice_connection(multi_one, alice):
"""Established connection filter."""
logger.info("alice create invitation to multi_one")
Expand Down

0 comments on commit ceabb3a

Please sign in to comment.