Skip to content

Commit

Permalink
Skip all traitsniper tests
Browse files Browse the repository at this point in the history
  • Loading branch information
snuderl committed Sep 21, 2023
1 parent 92eadb3 commit 50630ea
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/resolver/test_trait_sniper.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,28 @@ def test_get_ranks_max_page(self):
)
assert len(token_ranks) == 200

@pytest.mark.skipif(
"not config.getoption('--run-resolvers')",
reason="This requires API key",
)
def test_get_ranks_no_more_data(self):
token_ranks = TraitSniperResolver.get_ranks(
contract_address=self.BORED_APE_COLLECTION_ADDRESS, page=51
)
assert len(token_ranks) == 0

@pytest.mark.skipif(
"not config.getoption('--run-resolvers')",
reason="This requires API key",
)
def test_get_ranks_no_contract(self):
token_ranks = TraitSniperResolver.get_ranks(contract_address="0x123", page=1)
assert len(token_ranks) == 0

@pytest.mark.skipif(
"not config.getoption('--run-resolvers')",
reason="This requires API key",
)
def test_get_rank(self):
rank = TraitSniperResolver.get_rank(
collection_slug="boredapeyachtclub",
Expand Down

0 comments on commit 50630ea

Please sign in to comment.