Skip to content

Commit 9041378

Browse files
committed
Fixed broken tests by using local imports and resolving circular imports.
1 parent c4c4842 commit 9041378

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bunq/sdk/model/core/bunq_model.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from bunq import Pagination
2-
from bunq.sdk.context.bunq_context import BunqContext
32
from bunq.sdk.http import api_client
43
from bunq.sdk.http.bunq_response import BunqResponse
54
from bunq.sdk.json import converter
@@ -144,6 +143,7 @@ def _get_api_context(cls):
144143
:rtype: api_context.ApiContext
145144
"""
146145

146+
from bunq.sdk.context.bunq_context import BunqContext
147147
return BunqContext.api_context()
148148

149149
@classmethod
@@ -152,6 +152,7 @@ def _determine_user_id(cls):
152152
:rtype: int
153153
"""
154154

155+
from bunq.sdk.context.bunq_context import BunqContext
155156
return BunqContext.user_context().user_id
156157

157158
@classmethod
@@ -163,6 +164,7 @@ def _determine_monetary_account_id(cls, monetary_account_id=None):
163164
"""
164165

165166
if monetary_account_id is None:
167+
from bunq.sdk.context.bunq_context import BunqContext
166168
return BunqContext.user_context().primary_monetary_account.id_
167169

168170
return monetary_account_id

0 commit comments

Comments
 (0)