Skip to content

Commit

Permalink
Fixing Seer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielfior committed Dec 26, 2024
1 parent 7f86266 commit 4eb7cc5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion prediction_market_agent_tooling/markets/seer/data_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@
from prediction_market_agent_tooling.gtypes import HexBytes


class SeerParentMarket(BaseModel):
id: HexBytes


class SeerMarket(BaseModel):
model_config = ConfigDict(populate_by_name=True)

id: HexBytes
title: str = Field(alias="marketName")
outcomes: list[str]
parent_market: HexBytes | None = Field(alias="parentMarket")
parent_market: SeerParentMarket | None = Field(alias="parentMarket")
wrapped_tokens: list[HexBytes] = Field(alias="wrappedTokens")


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _get_fields_for_markets(self, markets_field: FieldPath) -> list[FieldPath]:
markets_field.creator,
markets_field.marketName,
markets_field.outcomes,
markets_field.parentMarket,
markets_field.parentMarket.id,
markets_field.finalizeTs,
markets_field.wrappedTokens,
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ def handler() -> t.Generator[SeerSubgraphHandler, None, None]:
yield SeerSubgraphHandler()


@pytest.skip(reason="Seer subgraph ")
def test_get_all_seer_markets(handler: SeerSubgraphHandler) -> None:
markets = handler.get_bicategorical_markets()
assert len(markets) > 1
Expand Down

0 comments on commit 4eb7cc5

Please sign in to comment.