Libraries refactor and add some sinks #4
|
@ -101,7 +101,6 @@ class TestTransactions(TestCase):
|
||||||
return test_data
|
return test_data
|
||||||
|
|
||||||
def mock_hgetall(self, string):
|
def mock_hgetall(self, string):
|
||||||
print("MOCK HGERALL CALLED WITH", string)
|
|
||||||
ref = string.split(".")[1]
|
ref = string.split(".")[1]
|
||||||
for num, trade in self.trades.items():
|
for num, trade in self.trades.items():
|
||||||
if trade["reference"] == ref:
|
if trade["reference"] == ref:
|
||||||
|
@ -114,7 +113,6 @@ class TestTransactions(TestCase):
|
||||||
return [v["id"] for k, v in self.trades.items() if k in self.return_trades]
|
return [v["id"] for k, v in self.trades.items() if k in self.return_trades]
|
||||||
|
|
||||||
def mock_get(self, string):
|
def mock_get(self, string):
|
||||||
print("MOCK GET", string)
|
|
||||||
for num, trade in self.trades.items():
|
for num, trade in self.trades.items():
|
||||||
if trade["id"] == string:
|
if trade["id"] == string:
|
||||||
return trade["reference"]
|
return trade["reference"]
|
||||||
|
|
Loading…
Reference in New Issue