Coverage for tests\test_utils_models_states.py: 100.00%
8 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_utils_models_states.py
5* Description: Unittests for `app` states models on the `ICGUIStates.contains()` method.
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# ==============================================================================
15from cognitivefactory.interactive_clustering_gui.models.states import ICGUIStates
17# ==============================================================================
18# test_icguitasks_contains
19# ==============================================================================
22async def test_icguistates_contains():
23 """
24 Test the `ICGUIStates.contains()` method.
25 """
26 assert ICGUIStates.contains("INITIALIZATION_WITHOUT_MODELIZATION") is True
27 assert ICGUIStates.contains("SAMPLING_TODO") is True
28 assert ICGUIStates.contains("CLUSTERING_PENDING") is True
29 assert ICGUIStates.contains("IMPORT_AT_ITERATION_END_WITH_WORKING_MODELIZATION") is True
30 assert ICGUIStates.contains("UNKNOWN") is False