generated from ACCESS-NRI/template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest_test_access_esm1p6_config.py
33 lines (25 loc) · 1.18 KB
/
test_test_access_esm1p6_config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# import shlex
# import subprocess
# from tests.common import RESOURCES_DIR
# TODO: Add back when we have a sufficient test config released
def test_test_access_esm1p6_config_release_release_preindustrial():
"""Test ACCESS-ESM1.6 specific config tests"""
pass
# access_esm1p6_configs = RESOURCES_DIR / "access" / "configurations"
# test_config = access_esm1p6_configs / "release-preindustrial+concentrations"
# if not test_config.exists():
# raise FileNotFoundError(f"The test configuration {test_config} does not exist.")
# test_cmd = (
# "model-config-tests -s "
# # Run all access_esm1p6 specific tests
# "-m access_esm1p6 "
# f"--control-path {test_config} "
# # Use target branch as can't mock get_git_branch function in utils
# f"--target-branch release-preindustrial+concentrations"
# )
# result = subprocess.run(shlex.split(test_cmd), capture_output=True, text=True)
# # Expect the tests to have passed
# if result.returncode:
# # Print out test logs if there are errors
# print(f"Test stdout: {result.stdout}\nTest stderr: {result.stderr}")
# assert result.returncode == 0