Coverage for tests\test_utils_models_settings.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_settings.py
5* Description: Unittests for `app` states models on the `ICGUISettings.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.settings import ICGUISettings
17# ==============================================================================
18# test_icguisettingstasks_contains
19# ==============================================================================
22async def test_icguisettingstasks_contains():
23 """
24 Test the `ICGUISettings.contains()` method.
25 """
26 assert ICGUISettings.contains("preprocessing") is True
27 assert ICGUISettings.contains("vectorization") is True
28 assert ICGUISettings.contains("sampling") is True
29 assert ICGUISettings.contains("clustering") is True
30 assert ICGUISettings.contains("UNKNOWN") is False