Commit a69b96e
committed
LCORE-602: Fix unit-test warning
```
.../assisted-chat/lightspeed-stack/src/authorization/middleware.py:91: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited
if not access_resolver.check_access(action, user_roles):
Enable tracemalloc to get traceback where the object was allocated.
See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
```
`mock_access_resolver` is created as an `AsyncMock`, which makes all its
methods async by default, but `AccessResolver` `check_access` is sync1 parent 690a6bc commit a69b96e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments