Skip to content

Commit

Permalink
create mock agents
Browse files Browse the repository at this point in the history
  • Loading branch information
XuhuiZhou committed Nov 23, 2024
1 parent 8c9d811 commit ff0425e
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions tests/ui/test_fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,20 @@ def create_dummy_episode_log() -> None:
@pytest.fixture
def create_mock_data() -> Generator[None, None, None]:
def _create_mock_agent_profile() -> None:
AgentProfile(first_name="John", last_name="Doe", pk="tmppk_agent1").save()
AgentProfile(first_name="Jane", last_name="Doe", pk="tmppk_agent2").save()
AgentProfile(
first_name="John",
last_name="Doe",
occupation="test_occupation",
gender="test_gender",
pk="tmppk_agent1",
).save()
AgentProfile(
first_name="Jane",
last_name="Doe",
occupation="test_occupation",
gender="test_gender",
pk="tmppk_agent2",
).save()

def _create_mock_env_profile() -> None:
env_profile = EnvironmentProfile(
Expand Down

0 comments on commit ff0425e

Please sign in to comment.