diff --git a/tools/tests/conftest.py b/tools/tests/conftest.py index 25916a0691..c71839bc4d 100644 --- a/tools/tests/conftest.py +++ b/tools/tests/conftest.py @@ -5,6 +5,8 @@ from dump_all_diagnostics import dump_diags from experiment import create_experiments, exp_id_from_path +experiment_dict = create_experiments() + def pytest_addoption(parser): parser.addoption('--exps', default=None, help="""comma-separated no spaces list of experiments to @@ -15,11 +17,6 @@ def pytest_addoption(parser): help="""Run on all experiments/test cases. By default tests are run on a 'fast' subset of experiments. Note that this overrides the --exps option.""") - parser.addoption('--platform', default='raijin', - help="""Which machine we're on. This determines how - the model is built. Currently supported options - are 'raijin' and 'ubuntu'.""") - def pytest_generate_tests(metafunc): """ @@ -28,8 +25,6 @@ def pytest_generate_tests(metafunc): print("Calling pytest_generate_tests") - experiment_dict = create_experiments(metafunc.config.option.platform) - if 'exp' in metafunc.fixturenames: if metafunc.config.option.full: # Run tests on all experiments. @@ -53,7 +48,6 @@ def exp(request): Called before each test, use this to dump all the experiment data. """ exp = request.param - print("pytest fixture exp: {}".format(exp)) # Run the experiment to get latest code changes. This will do nothing if # the experiment has already been run. diff --git a/tools/tests/experiment.py b/tools/tests/experiment.py index a9039fa3ce..7f37c4c5a4 100644 --- a/tools/tests/experiment.py +++ b/tools/tests/experiment.py @@ -41,9 +41,9 @@ def __hash__(self): ('ocean_model', 'fsitherm'), ('ocean_model', 'total_seaice_melt'), ('ocean_model', 'heat_restore'), + ('ocean_model', 'heat_added'), ('ocean_model', 'total_heat_restore'), ('ocean_model', 'total_heat_adjustment'), - ('ocean_model_z_new', 'TKE_to_Kd'), ('ice_model', 'Cor_ui'), ('ice_model', 'Cor_vi'), ('ice_model', 'OBI'),