Libraries refactor and add some sinks #4

Closed
m wants to merge 136 commits from library-refactor into master
1 changed files with 0 additions and 2 deletions
Showing only changes of commit 61253a5db3 - Show all commits

View File

@ -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"]