Coverage for tests\test_get_gui_help.py: 100.00%
7 statements
« prev ^ index » next coverage.py v7.4.3, created at 2024-03-22 23:23 +0100
« prev ^ index » next coverage.py v7.4.3, created at 2024-03-22 23:23 +0100
1# -*- coding: utf-8 -*-
3"""
4* Name: interactive-clustering-gui/tests/test_get_gui_help.py
5* Description: Unittests for `app` module on the `GET /gui/help` route.
6* Author: Erwan Schild
7* Created: 22/02/2022
8* Licence: CeCILL (https://cecill.info/licences.fr.html)
9"""
11# ==============================================================================
12# IMPORT PYTHON DEPENDENCIES
13# ==============================================================================
15import pytest
17# ==============================================================================
18# test_ok
19# ==============================================================================
22@pytest.mark.asyncio()
23async def test_ok(async_client):
24 """
25 Test the `GET /gui/help` route.
27 Arguments:
28 async_client: Fixture providing an HTTP client, declared in `conftest.py`.
29 """
30 # Assert HTTP client is created.
31 assert async_client
33 # Assert route `GET /gui/help` works.
34 response = await async_client.get(url="/gui/help")
35 assert response.status_code == 200