cara/cern_caimira/tests/test_expert_app.py
lrdossan 20b0467f89 Backend separation
- extract, isolate and package it in a completely independent Python module, versioned and in a way that allows releases on PyPI.org
- fixed error in placeholder for secondary school (data registry defaults)
- added restriction in pytest version to install
- expected number of new cases fix
- data registry update (schema v2.1.1)
- github update
- deprecate ExpertApplication and CO2Application
- changes to reflect schema update 2.0.2
- version update
- Fixed error with f_inf (short-range)
- new folder layout
- Conditional probability data update
- General fixes
- Fitting results in L/S/person
- CO2 fitting algorithm refinement
2024-09-02 17:39:46 +02:00

24 lines
824 B
Python

import pytest
import cern_caimira.apps.expert_apps as exp
@pytest.fixture
def expert_app():
return exp.ExpertApplication()
@pytest.mark.skip(reason="ExpertApplication is deactivated")
def test_app(expert_app):
# To start with, let's just test that the application runs. We don't try to
# do anything fancy to verify how it looks etc., we leave that for manual
# testing.
assert expert_app._model_scenarios[0][0] == "Scenario 1"
@pytest.mark.skip(reason="ExpertApplication is deactivated")
def test_new_scenario_changes_tab(expert_app):
# Adding a new scenario should change the tab index of the multi-model view.
assert expert_app.multi_model_view.widget.selected_index == 0
expert_app.add_scenario("Another scenario")
assert expert_app.multi_model_view.widget.selected_index == 1