mirror of
https://github.com/wassname/libcryptomarket.git
synced 2026-09-09 11:25:52 +08:00
Resolved unit test issue
This commit is contained in:
@@ -54,6 +54,10 @@ def test_get_instruments_cryptocompare(monkeypatch):
|
||||
}
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def raise_for_status(cls):
|
||||
pass
|
||||
|
||||
return MockReturnClass()
|
||||
|
||||
monkeypatch.setattr(requests, 'get', mockreturn)
|
||||
@@ -129,6 +133,10 @@ def test_get_historical_prices_cryptocompare(monkeypatch):
|
||||
}]
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def raise_for_status(cls):
|
||||
pass
|
||||
|
||||
return MockReturnClass()
|
||||
|
||||
monkeypatch.setattr(requests, 'get', mockreturn)
|
||||
|
||||
Reference in New Issue
Block a user