Skip to content

Commit 0e96a1e

Browse files
committed
Split checksum_slow marker, rename markers for clarity
1 parent d3775b0 commit 0e96a1e

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/model_config_tests/conftest.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,20 +116,18 @@ def pytest_addoption(parser):
116116

117117
def pytest_configure(config):
118118
config.addinivalue_line(
119-
"markers", "checksum: mark tests to run as part of reproducibility CI tests"
119+
"markers", "repro: mark tests to run as part of reproducibility tests"
120120
)
121121
config.addinivalue_line(
122-
"markers", "checksum_slow: mark tests as slow reproducibility tests"
122+
"markers", "repro_historical: mark tests that check historical reproducibility"
123123
)
124124
config.addinivalue_line(
125-
"markers", "repro_historical: mark tests as historical reproducibility test"
125+
"markers", "repro_repeat: mark tests that check repeat reproducibility"
126126
)
127127
config.addinivalue_line(
128-
"markers", "repro_repeat: mark tests as repeat reproducibility test"
129-
)
130-
config.addinivalue_line(
131-
"markers", "repro_restart: mark tests as restart reproducibility test"
128+
"markers", "repro_restart: mark tests that check restart reproducibility"
132129
)
130+
config.addinivalue_line("markers", "slow: mark tests that are slow to run")
133131
config.addinivalue_line(
134132
"markers",
135133
"config: mark as configuration tests for release branches in quick QA CI checks",

src/model_config_tests/test_bit_reproducibility.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def read_historical_checksums(
4747

4848
class TestBitReproducibility:
4949

50-
@pytest.mark.checksum
50+
@pytest.mark.repro
5151
@pytest.mark.repro_historical
5252
def test_bit_repro_historical(
5353
self,
@@ -133,8 +133,9 @@ def test_bit_repro_historical(
133133
hist_checksums == checksums
134134
), f"Checksums were not equal. The new checksums have been written to {checksum_output_file}."
135135

136-
@pytest.mark.checksum_slow
136+
@pytest.mark.repro
137137
@pytest.mark.repro_repeat
138+
@pytest.mark.slow
138139
def test_bit_repro_repeat(self, output_path: Path, control_path: Path):
139140
"""
140141
Test that a run has same checksums when ran twice
@@ -156,8 +157,9 @@ def test_bit_repro_repeat(self, output_path: Path, control_path: Path):
156157

157158
assert produced == expected
158159

159-
@pytest.mark.checksum_slow
160+
@pytest.mark.repro
160161
@pytest.mark.repro_restart
162+
@pytest.mark.slow
161163
def test_restart_repro(self, output_path: Path, control_path: Path):
162164
"""
163165
Test that a run reproduces across restarts.

0 commit comments

Comments
 (0)