Add new instructions API #459
Triggered via pull request
September 14, 2024 15:25
Status
Failure
Total duration
4m 55s
Artifacts
–
build.yml
on: pull_request
devel_shell
3m 8s
Matrix: test
Annotations
36 errors and 1 warning
test_descriptions.test_product_instructons[fi]:
.mypy_cache/3.11/tests/test_descriptions.data.json#L34
failed on setup with "file /home/runner/work/python-rasenmaeher-api/python-rasenmaeher-api/tests/test_descriptions.py, line 34
@pytest.mark.parametrize("lang", ["fi", "en"])
@pytest.mark.asyncio
async def test_product_instructons(user_mtls_client: TestClient, lang: str) -> None:
"""Make sure we get product instructions"""
resp = await user_mtls_client.get(f"/api/v1/instructions/fake/{lang}")
assert resp
payload = resp.json()
LOGGER.debug(payload)
assert payload
assert payload["callsign"]
E fixture 'user_mtls_client' not found
> available fixtures: _session_event_loop, announce_server, anyio_backend, anyio_backend_name, anyio_backend_options, app_client, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, docker_cleanup, docker_compose_command, docker_compose_file, docker_compose_project_name, docker_ip, docker_services, docker_setup, doctest_namespace, event_loop, event_loop_policy, ginosession, issuer_cl, monkeypatch, monkeysession, mtls_client, nice_tmpdir_mod, nice_tmpdir_ses, no_cover, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, session_env_config, src/rasenmaeher_api/web/api/people/__init__.py::<event_loop>, test_user_secrets, tests/test_descriptions.py::<event_loop>, tilauspalvelu_jwt_admin_client, tilauspalvelu_jwt_client, tilauspalvelu_jwt_user_client, tilauspalvelu_jwt_user_koira_client, tilauspalvelu_jwt_without_proper_user_client, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, unauth_client, unauth_client_session, unused_tcp_port, unused_tcp_port_factory, unused_udp_port, unused_udp_port_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/runner/work/python-rasenmaeher-api/python-rasenmaeher-api/tests/test_descriptions.py:34"
|
test_descriptions.test_product_instructons[en]:
.mypy_cache/3.11/tests/test_descriptions.data.json#L34
failed on setup with "file /home/runner/work/python-rasenmaeher-api/python-rasenmaeher-api/tests/test_descriptions.py, line 34
@pytest.mark.parametrize("lang", ["fi", "en"])
@pytest.mark.asyncio
async def test_product_instructons(user_mtls_client: TestClient, lang: str) -> None:
"""Make sure we get product instructions"""
resp = await user_mtls_client.get(f"/api/v1/instructions/fake/{lang}")
assert resp
payload = resp.json()
LOGGER.debug(payload)
assert payload
assert payload["callsign"]
E fixture 'user_mtls_client' not found
> available fixtures: _session_event_loop, announce_server, anyio_backend, anyio_backend_name, anyio_backend_options, app_client, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, docker_cleanup, docker_compose_command, docker_compose_file, docker_compose_project_name, docker_ip, docker_services, docker_setup, doctest_namespace, event_loop, event_loop_policy, ginosession, issuer_cl, monkeypatch, monkeysession, mtls_client, nice_tmpdir_mod, nice_tmpdir_ses, no_cover, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, session_env_config, src/rasenmaeher_api/web/api/people/__init__.py::<event_loop>, test_user_secrets, tests/test_descriptions.py::<event_loop>, tilauspalvelu_jwt_admin_client, tilauspalvelu_jwt_client, tilauspalvelu_jwt_user_client, tilauspalvelu_jwt_user_koira_client, tilauspalvelu_jwt_without_proper_user_client, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, unauth_client, unauth_client_session, unused_tcp_port, unused_tcp_port_factory, unused_udp_port, unused_udp_port_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/runner/work/python-rasenmaeher-api/python-rasenmaeher-api/tests/test_descriptions.py:34"
|
test_enrollment.test_enroll_verif_code[tilauspalvelu_jwt_admin_client0]:
.mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "gino.exceptions.UninitializedError: Gino engine is not initialized."
|
test_enrollment.test_enroll_show_verif_code[tilauspalvelu_jwt_admin_client0]:
.mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "gino.exceptions.UninitializedError: Gino engine is not initialized."
|
test_enrollment.test_enroll_show_verifcode_bad_code[tilauspalvelu_jwt_admin_client0]:
.mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "gino.exceptions.UninitializedError: Gino engine is not initialized."
|
test_enrollment.test_post_init[tilauspalvelu_jwt_admin_client0]:
.mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "gino.exceptions.UninitializedError: Gino engine is not initialized."
|
test_enrollment.test_promote_demote[tilauspalvelu_jwt_admin_client0]:
.mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "gino.exceptions.UninitializedError: Gino engine is not initialized."
|
test_enrollment.test_lock[tilauspalvelu_jwt_admin_client0]:
.mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "gino.exceptions.UninitializedError: Gino engine is not initialized."
|
test_enrollment.test_accept[tilauspalvelu_jwt_admin_client0]:
.mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "gino.exceptions.UninitializedError: Gino engine is not initialized."
|
test_enrollment.test_accept_no_such_user[tilauspalvelu_jwt_admin_client0]:
.mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "gino.exceptions.UninitializedError: Gino engine is not initialized."
|
test_enrollment.test_invitecode_create[tilauspalvelu_jwt_admin_client0]:
.mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "gino.exceptions.UninitializedError: Gino engine is not initialized."
|
test_enrollment.test_invitecode_dectivate[tilauspalvelu_jwt_admin_client0]:
.mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "gino.exceptions.UninitializedError: Gino engine is not initialized."
|
test_enrollment.test_invitecode_activate[tilauspalvelu_jwt_admin_client0]:
.mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "gino.exceptions.UninitializedError: Gino engine is not initialized."
|
test_enrollment.test_enroll_verif_code_fail_no_jwt:
.mypy_cache/3.11/tests/test_enrollment.data.json#L35
gino.exceptions.UninitializedError: Gino engine is not initialized.
|
test_enrollment.test_show_verifcode_no_jwt:
.mypy_cache/3.11/tests/test_enrollment.data.json#L96
gino.exceptions.UninitializedError: Gino engine is not initialized.
|
test_enrollment.test_show_verifcode_no_permission:
.mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "gino.exceptions.UninitializedError: Gino engine is not initialized."
|
test_enrollment.test_show_verifcode_sub_is_bonkers:
.mypy_cache/3.11/tests/test_enrollment.data.json#L126
asyncpg.exceptions._base.InterfaceError: cannot perform operation: another operation is in progress
|
test_enrollment.test_have_i_been_accepted_yes:
.mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "gino.exceptions.UninitializedError: Gino engine is not initialized."
|
test_enrollment.test_have_i_been_accepted_no:
.mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "gino.exceptions.UninitializedError: Gino engine is not initialized."
|
test_enrollment.test_status_koira:
.mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "gino.exceptions.UninitializedError: Gino engine is not initialized."
|
test_enrollment.test_status_not_found:
.mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "gino.exceptions.UninitializedError: Gino engine is not initialized."
|
test_enrollment.test_list_as_adm:
.mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "gino.exceptions.UninitializedError: Gino engine is not initialized."
|
test_enrollment.test_list_as_usr:
.mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "gino.exceptions.UninitializedError: Gino engine is not initialized."
|
test_enrollment.test_init_as_usr:
.mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "gino.exceptions.UninitializedError: Gino engine is not initialized."
|
test_enrollment.test_promote_as_usr:
.mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "gino.exceptions.UninitializedError: Gino engine is not initialized."
|
test_enrollment.test_lock_as_usr:
.mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "gino.exceptions.UninitializedError: Gino engine is not initialized."
|
test_enrollment.test_accept_as_usr:
.mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "gino.exceptions.UninitializedError: Gino engine is not initialized."
|
test_enrollment.test_create_as_usr:
.mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "gino.exceptions.UninitializedError: Gino engine is not initialized."
|
test_enrollment.test_invite_code:
.mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "gino.exceptions.UninitializedError: Gino engine is not initialized."
|
test_enrollment.test_enroll_with_invite_code:
.mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "gino.exceptions.UninitializedError: Gino engine is not initialized."
|
test_healthcheck.test_get_healthcheck[app_client0]:
.mypy_cache/3.11/tests/test_healthcheck.data.json#L21
RuntimeError: Task <Task pending name='Task-800' coro=<FastAPI.__call__() running at /home/runner/.cache/pypoetry/virtualenvs/rasenmaeher-api-jxRxA5GG-py3.11/lib/python3.11/site-packages/fastapi/applications.py:1054> cb=[_callback(<bound method... _getters[1]>>)() at /home/runner/.cache/pypoetry/virtualenvs/rasenmaeher-api-jxRxA5GG-py3.11/lib/python3.11/site-packages/async_asgi_testclient/utils.py:99]> got Future <Future pending cb=[BaseSelectorEventLoop._sock_write_done(20, handle=<Handle BaseS....0.1', 5542))>)()]> attached to a different loop
|
test_rasenmaeher_api.test_announce:
.mypy_cache/3.11/tests/test_rasenmaeher_api.data.json#L41
asyncpg.exceptions._base.InterfaceError: cannot perform operation: another operation is in progress
|
test_tokens.test_get_code:
.mypy_cache/3.11/tests/test_tokens.data.json#L15
RuntimeError: Task <Task pending name='Task-926' coro=<FastAPI.__call__() running at /home/runner/.cache/pypoetry/virtualenvs/rasenmaeher-api-jxRxA5GG-py3.11/lib/python3.11/site-packages/fastapi/applications.py:1054> cb=[_callback(<bound method... _getters[1]>>)() at /home/runner/.cache/pypoetry/virtualenvs/rasenmaeher-api-jxRxA5GG-py3.11/lib/python3.11/site-packages/async_asgi_testclient/utils.py:99]> got Future <Future pending cb=[BaseSelectorEventLoop._sock_write_done(21, handle=<Handle BaseS....0.1', 5542))>)()]> attached to a different loop
|
test_tokens.test_use_code:
.mypy_cache/3.11/tests/test_tokens.data.json#L15
RuntimeError: Task <Task pending name='Task-936' coro=<FastAPI.__call__() running at /home/runner/.cache/pypoetry/virtualenvs/rasenmaeher-api-jxRxA5GG-py3.11/lib/python3.11/site-packages/fastapi/applications.py:1054> cb=[_callback(<bound method... _getters[1]>>)() at /home/runner/.cache/pypoetry/virtualenvs/rasenmaeher-api-jxRxA5GG-py3.11/lib/python3.11/site-packages/async_asgi_testclient/utils.py:99]> got Future <Future pending cb=[BaseSelectorEventLoop._sock_write_done(21, handle=<Handle BaseS....0.1', 5542))>)()]> attached to a different loop
|
test_tokens.test_use_code_twice:
.mypy_cache/3.11/tests/test_tokens.data.json#L15
RuntimeError: Task <Task pending name='Task-941' coro=<FastAPI.__call__() running at /home/runner/.cache/pypoetry/virtualenvs/rasenmaeher-api-jxRxA5GG-py3.11/lib/python3.11/site-packages/fastapi/applications.py:1054> cb=[_callback(<bound method... _getters[1]>>)() at /home/runner/.cache/pypoetry/virtualenvs/rasenmaeher-api-jxRxA5GG-py3.11/lib/python3.11/site-packages/async_asgi_testclient/utils.py:99]> got Future <Future pending cb=[BaseSelectorEventLoop._sock_write_done(21, handle=<Handle BaseS....0.1', 5542))>)()]> attached to a different loop
|
test (3.11)
Process completed with exit code 1.
|
devel_shell
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|