mirror of
https://github.com/wassname/libcryptomarket.git
synced 2026-10-29 13:10:23 +08:00
Resolved unit test issue
This commit is contained in:
1 parent
415fa6a22b
commit
60e2ce0379
5 files changed
+15
-5
No files matched your search
@@ -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