Skip to content

Commit 428bddf

Browse files
committed
Fix tests again
1 parent 27e5cbb commit 428bddf

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

tests/async/test_client.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,13 @@ async def test_client_create_private_clash_of_code_logged_in_error(
183183
["Python3"], ["SHORTEST", "FASTEST"]
184184
)
185185

186+
class C:
187+
def __init__(self):
188+
self.id = 0
189+
186190
client._state.logged_in = True
191+
client._state.codingamer = C()
192+
187193
mock_httperror(
188194
client._state.http,
189195
"create_private_clash_of_code",

tests/sync/test_client.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,13 @@ def test_client_create_private_clash_of_code_logged_in_error(
172172
["Python3"], ["SHORTEST", "FASTEST"]
173173
)
174174

175+
class C:
176+
def __init__(self):
177+
self.id = 0
178+
175179
client._state.logged_in = True
180+
client._state.codingamer = C()
181+
176182
mock_httperror(
177183
client._state.http,
178184
"create_private_clash_of_code",

0 commit comments

Comments
 (0)