Skip to content

Commit bf1149f

Browse files
committed
tests fix again yay
1 parent 1d8c3e7 commit bf1149f

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

tests/test_webauthn.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ async def test_update_finish(self):
555555
my_mock_response.json.return_value = data
556556
mock_post.return_value = my_mock_response
557557
expected_uri = f"{common.DEFAULT_BASE_URL}{EndpointsV1.update_auth_webauthn_finish_path}"
558-
await futu_await(webauthn.update_finish("t01", "response01"))
558+
res = await futu_await(webauthn.update_finish("t01", "response01"))
559559
mock_post.assert_called_with(
560560
expected_uri,
561561
headers={
@@ -569,9 +569,7 @@ async def test_update_finish(self):
569569
verify=SSLMatcher(),
570570
timeout=DEFAULT_TIMEOUT_SECONDS,
571571
)
572-
self.assertIsNotNone(
573-
await futu_await(webauthn.update_finish("t01", "response01"))
574-
)
572+
self.assertIsNone(res)
575573

576574

577575
if __name__ == "__main__":

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ env_list =
99

1010
[testenv]
1111
skip_install = true
12+
pass_env =
13+
COVERAGE_FILE
1214
setenv =
1315
sync: ASYNC_MODE = False
1416
async: ASYNC_MODE = True
15-
COVERAGE_FILE = .coverage.{envname}
1617
commands_pre =
1718
poetry install --only main,tests -E Flask
1819
commands =
@@ -34,10 +35,9 @@ commands =
3435

3536
[testenv:report]
3637
commands =
37-
poetry run coverage combine
3838
poetry run coverage report
3939
depends =
40-
py3{13, 12, 11, 10, 9, 8}-{sync,async}
40+
py3{12, 11, 10, 9, 8}-{sync,async}
4141

4242
[testenv:py37]
4343
deps =

0 commit comments

Comments
 (0)