Skip to content

Commit 83d02b0

Browse files
Renamed payu_config_yaml to yaml_config.
1 parent 5e4fd79 commit 83d02b0

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed
File renamed without changes.

tests/test_payu_config_yaml.py renamed to tests/test_yaml_config.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import pytest
55

6-
from access.parsers.payu_config_yaml import YAMLParser
6+
from access.parsers.yaml_config import YAMLParser
77

88

99
@pytest.fixture(scope="module")
@@ -13,7 +13,7 @@ def parser():
1313

1414

1515
@pytest.fixture()
16-
def simple_payu_config():
16+
def simple_yaml_config():
1717
"""Fixture returning a dictionary storing a payu config file."""
1818
return {
1919
"project": "x77",
@@ -33,7 +33,7 @@ def simple_payu_config():
3333

3434

3535
@pytest.fixture()
36-
def simple_payu_config_file():
36+
def simple_yaml_config_file():
3737
"""Fixture returning the contents of a simple payu config file."""
3838
return """project: x77
3939
ncpus: 48
@@ -51,7 +51,7 @@ def simple_payu_config_file():
5151

5252

5353
@pytest.fixture()
54-
def payu_config_file():
54+
def yaml_config_file():
5555
"""Fixture returning the contents of a more complex payu config file."""
5656
return """# PBS configuration
5757
@@ -81,7 +81,7 @@ def payu_config_file():
8181

8282

8383
@pytest.fixture()
84-
def modified_payu_config_file():
84+
def modified_yaml_config_file():
8585
"""Fixture returning the contents the previous payu config file after introducing some modifications."""
8686
return """# PBS configuration
8787
@@ -109,19 +109,19 @@ def modified_payu_config_file():
109109
"""
110110

111111

112-
def test_read_payu_config(parser, simple_payu_config, simple_payu_config_file):
112+
def test_read_yaml_config(parser, simple_yaml_config, simple_yaml_config_file):
113113
"""Test parsing of a simple file."""
114-
config = parser.parse(simple_payu_config_file)
114+
config = parser.parse(simple_yaml_config_file)
115115

116-
assert config == simple_payu_config
116+
assert config == simple_yaml_config
117117

118118

119-
def test_round_trip_payu_config(parser, payu_config_file, modified_payu_config_file):
119+
def test_round_trip_yaml_config(parser, yaml_config_file, modified_yaml_config_file):
120120
"""Test round-trip parsing of a more complex file with mutation of the config."""
121-
config = parser.parse(payu_config_file)
121+
config = parser.parse(yaml_config_file)
122122

123123
config["ncpus"] = 64
124124
config["input"][0] = "/some/other/path/to/inputs/1deg/mom"
125125
del config["exe"]
126126

127-
assert modified_payu_config_file == str(config)
127+
assert modified_yaml_config_file == str(config)

0 commit comments

Comments
 (0)