Skip to content

Commit

Permalink
Moved test_access_esm1p5_manifest_exe_in_release_spack_location tes…
Browse files Browse the repository at this point in the history
…t function from `src/model_config_tests` directory
  • Loading branch information
CodeGat committed Aug 9, 2024
1 parent 8f6ff1e commit bdfb85f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 30 deletions.
20 changes: 19 additions & 1 deletion src/model_config_tests/qa/test_access_esm1p5_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,17 @@

import pytest

from model_config_tests.qa.test_config import check_manifest_exes_in_spack_location
from model_config_tests.util import get_git_branch_name

### Bunch of expected values for tests ###
# Name of module on NCI
ACCESS_ESM1P5_MODULE_NAME = "access-esm1p5"
# Name of Model Repository - used for retrieving spack location files for released versions
ACCESS_ESM1P5_REPOSITORY_NAME = "ACCESS-ESM1.5"

######################################
# Bunch of expected values for tests #
######################################
VALID_REALMS: set[str] = {"atmosphere", "land", "ocean", "ocnBgchm", "seaIce"}
VALID_KEYWORDS: set[str] = {"global", "access-esm1.5"}
VALID_NOMINAL_RESOLUTION: str = "100 km"
Expand Down Expand Up @@ -85,6 +93,16 @@ def branch(control_path, target_branch):
class TestAccessEsm1p5:
"""ACCESS-ESM1.5 Specific configuration and metadata tests"""

def test_access_esm1p5_manifest_exe_in_release_spack_location(
self, config, control_path
):
check_manifest_exes_in_spack_location(

Check warning on line 99 in src/model_config_tests/qa/test_access_esm1p5_config.py

View check run for this annotation

Codecov / codecov/patch

src/model_config_tests/qa/test_access_esm1p5_config.py#L99

Added line #L99 was not covered by tests
model_module_name=ACCESS_ESM1P5_MODULE_NAME,
model_repo_name=ACCESS_ESM1P5_REPOSITORY_NAME,
control_path=control_path,
config=config,
)

@pytest.mark.parametrize(
"field,expected", [("realm", VALID_REALMS), ("keyword", VALID_KEYWORDS)]
)
Expand Down
29 changes: 0 additions & 29 deletions src/model_config_tests/test_access_esm1p5_config.py

This file was deleted.

0 comments on commit bdfb85f

Please sign in to comment.