Skip to content

Commit 3c49a2c

Browse files
committed
minimal mocking for get_user_details, generate_receive_address
1 parent a856866 commit 3c49a2c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

coinbase/mock.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,12 @@ def get_transaction(self, transaction_id):
113113
return self._transactions[transaction_id]
114114

115115
def get_user_details(self):
116-
raise NotImplementedError # todo
116+
# todo - this could be mocked better
117+
return CoinbaseUser(email='[email protected]')
117118

118119
def generate_receive_address(self, callback_url=None):
119-
raise NotImplementedError # todo
120+
# todo - this could be mocked better
121+
return '1DzkRzSUqm8jGhT8wp7E8XNMcr9J3nT3SX'
120122

121123
def create_button(self, button, account_id=None):
122124
id = random_button_id()

0 commit comments

Comments
 (0)