From 50630ea2d70ceaa122e82108489b3957b99fcb87 Mon Sep 17 00:00:00 2001 From: Blaz Snuderl Date: Thu, 21 Sep 2023 13:26:45 +0200 Subject: [PATCH] Skip all traitsniper tests --- tests/resolver/test_trait_sniper.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/resolver/test_trait_sniper.py b/tests/resolver/test_trait_sniper.py index 8ce0813..91d678e 100644 --- a/tests/resolver/test_trait_sniper.py +++ b/tests/resolver/test_trait_sniper.py @@ -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",