@@ -16,11 +16,17 @@ def perp_api():
1616test_address = '0x134089B387E22f52b1e06CC80d9a5F622032EF74'
1717
1818
19+ @pytest .mark .skip (
20+ reason = 'metadata.perp.exchange/production.json returns 404 — upstream endpoint is offline'
21+ )
1922def test_perp_contract_address ():
2023 contract = perp_contract_address ('PERP' )
2124 assert contract == '0xbC396689893D065F41bc2C6EcbeE5e0085233447'
2225
2326
27+ @pytest .mark .skip (
28+ reason = 'metadata.perp.exchange/production.json returns 404 — upstream endpoint is offline'
29+ )
2430def test_perp_invalid_contract_raises ():
2531 with pytest .raises (ValueError , match = 'Invalid contract name.' ):
2632 perp_contract_address ("abc" )
@@ -37,6 +43,9 @@ def filter_infura_key(request):
3743
3844
3945@pytest .mark .integration
46+ @pytest .mark .skip (
47+ reason = 'metadata.perp.exchange/production.json returns 404 — upstream endpoint is offline'
48+ )
4049def test_fetch ():
4150 key = os .environ .get ('INFURA_API_KEY' )
4251 api = PerpetualApi (f'https://mainnet.infura.io/v3/{ key } ' )
@@ -45,6 +54,9 @@ def test_fetch():
4554
4655
4756@pytest .mark .integration
57+ @pytest .mark .skip (
58+ reason = 'metadata.perp.exchange/production.json returns 404 — upstream endpoint is offline'
59+ )
4860def test_fetch_error ():
4961 api = PerpetualApi (f'https://mainnet.infura.io/v3/no-key' )
5062 raw = api .fetch_balances (test_address )
@@ -55,6 +67,9 @@ def test_fetch_error():
5567 )
5668
5769
70+ @pytest .mark .skip (
71+ reason = 'metadata.perp.exchange/production.json returns 404 — upstream endpoint is offline'
72+ )
5873def test_fetch_error_raises_from_get_balances ():
5974 api = PerpetualApi (f'https://mainnet.infura.io/v3/no-key' )
6075 with pytest .raises (ApiException ) as exc :
0 commit comments