Skip to content

Commit 5809d1f

Browse files
committed
.
1 parent 5c0da9c commit 5809d1f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

tests/recipe_specs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"recipe_nonWF_nonstacked.slim": {"nonWF": True, "nonstacked": True},
4040
"recipe_init_mutated_WF.slim": {"WF": True, "init_mutated": True},
4141
"recipe_init_mutated_nonWF.slim": {"nonWF": True, "init_mutated": True},
42-
"recipe_with_metadata.slim": {"special_metadata": True},
42+
"recipe_with_metadata.slim": {"user_metadata": True},
4343
"recipe_resettable_WF.slim": {"WF": True, "resettable": True, "user_metadata": True},
4444
"recipe_resettable_nonWF.slim": {"nonWF": True, "resettable": True, "user_metadata": True},
4545
"recipe_retain_everyone_WF_late.slim": {"WF": True, "pedigree": True, "retained": True},
@@ -77,6 +77,9 @@
7777
d[f"remembered_{y}"] = True
7878
recipe_specs[f"recipe_record_everyone_{t}_{y}.slim"] = d
7979

80+
# add the script name itself to the keys: this must come last!
81+
for k in recipe_specs:
82+
recipe_specs[k][k] = True
8083

8184
def recipe_eq(*keys, exclude=None):
8285
"""

tests/test_metadata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def test_recover_metadata(self, recipe):
204204
if k != 'description' or ts.metadata['SLiM'][k] != "":
205205
assert ts.metadata['SLiM'][k] == md['SLiM'][k]
206206

207-
@pytest.mark.parametrize('recipe', recipe_eq("special_metadata"), indirect=True)
207+
@pytest.mark.parametrize('recipe', recipe_eq("recipe_with_metadata.slim"), indirect=True)
208208
def test_user_metadata(self, recipe):
209209
for _, ts in recipe["ts"].items():
210210
md = ts.metadata["SLiM"]
@@ -214,7 +214,7 @@ def test_user_metadata(self, recipe):
214214
"pi" : [3, 1, 4, 1, 5, 9]
215215
}
216216

217-
@pytest.mark.parametrize('recipe', recipe_eq("special_metadata"), indirect=True)
217+
@pytest.mark.parametrize('recipe', recipe_eq("recipe_with_metadata.slim"), indirect=True)
218218
def test_population_names(self, recipe):
219219
for _, ts in recipe["ts"].items():
220220
md = ts.metadata["SLiM"]

0 commit comments

Comments
 (0)