Skip to content

Commit 3b4a80b

Browse files
committed
typo corrected
1 parent 2ba5636 commit 3b4a80b

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

tests/engine/test_check.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
)
1616

1717

18-
@pytest.fixture(name="dataframes", scope="function")
18+
@pytest.fixture(name="stats_dataframes", scope="function")
1919
def fixture_dataframes():
2020
"""
2121
Create stats dataframes and reference tolerances.
@@ -89,8 +89,8 @@ def _check(df1, df2, tol_large, tol_small, file_type):
8989
)
9090

9191

92-
def test_check(dataframes):
93-
df1, df2, tol_large, tol_small = dataframes
92+
def test_check_stats(stats_dataframes):
93+
df1, df2, tol_large, tol_small = stats_dataframes
9494
_check(df1, df2, tol_large, tol_small, file_type="stats")
9595

9696

@@ -109,7 +109,7 @@ def test_check_fof(fof_datasets):
109109
)
110110

111111

112-
def test_check_one_zero(dataframes):
112+
def test_check_one_zero_stats(dataframes):
113113
"""
114114
Test that a null value in ds1 causes failure,
115115
and that a variation within tolerance is accepted.
@@ -122,7 +122,7 @@ def test_check_one_zero(dataframes):
122122
diff_df = diff_df.groupby(["variable"]).max()
123123
out, err, _ = check_variable(diff_df, tol_large)
124124

125-
assert not out, f"Check con 0-value reference ha validato erroneamente:\n{err}"
125+
assert not out, f"Check with 0-value reference validated incorrectly:\n{err}"
126126

127127
df2 = df2.copy()
128128
df2.loc[("NetCDF:*atm_3d*.nc", "var_1", 2), (0, "max")] = CHECK_THRESHOLD / 2
@@ -149,7 +149,7 @@ def test_check_one_zero_fof(fof_datasets):
149149

150150
out, err, _ = check_variable(diff_df, tol_large)
151151

152-
assert not out, f"Check con 0-value reference ha validato erroneamente:\n{err}"
152+
assert not out, f"Check with 0-value reference validated incorrectly:\n{err}"
153153

154154
_, _, ds_veri2_copy = split_feedback_dataset(ds2_copy)
155155
ds_veri2_copy = ds_veri2_copy.copy(deep=True)
@@ -163,7 +163,7 @@ def test_check_one_zero_fof(fof_datasets):
163163
)
164164

165165

166-
def test_check_smalls(dataframes):
166+
def test_check_smalls_stats(dataframes):
167167
"""
168168
Both values are close to 0 and should be accepted even though
169169
their relative difference is large.

tests/engine/test_check2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from engine.check import check
1414

1515

16-
@pytest.fixture(name="dataframes", scope="function")
16+
@pytest.fixture(name="stats_dataframes", scope="function")
1717
def fixture_dataframes(tmp_dir):
1818
"""
1919
Create stats dataframes and reference tolerances.
@@ -94,13 +94,13 @@ def fixture_fof_datasets(tmp_dir, sample_dataset_fof):
9494
yield ds1_file, ds2_file, tol_large_file, tol_small_file
9595

9696

97-
def test_check_cli_stats(dataframes):
97+
def test_check_cli_stats(stats_dataframes):
9898
"""
9999
Test that is not validated in the case of large tolerances but
100100
is validated in the case of small tolerances.
101101
"""
102102

103-
df1_stats, df2_stats, tol_large, tol_small = dataframes
103+
df1_stats, df2_stats, tol_large, tol_small = stats_dataframes
104104

105105
runner = CliRunner()
106106
result = runner.invoke(

0 commit comments

Comments
 (0)