10
10
11
11
import pytest
12
12
13
- from zeusops_bot .reforger_config_gen import ReforgerConfigGenerator , as_config_file
13
+ from zeusops_bot .reforger_config_gen import ReforgerConfigGenerator
14
14
15
15
16
16
@pytest .mark .parametrize (
17
17
("filenames" , "mission_names" ),
18
18
[
19
19
(["mission1.json" , "mission2.json" ], ["mission1" , "mission2" ]),
20
20
([], []),
21
- pytest .param (
22
- ["mission1.json" , "mission2.json" , ".gitignore" ],
23
- ["mission1" , "mission2" ],
24
- marks = pytest .mark .xfail (reason = "GH#11" ),
25
- ),
21
+ (["mission1.json" , "mission2.json" , ".gitignore" ], ["mission1" , "mission2" ]),
26
22
],
27
23
ids = ["two missions" , "empty" , "non-json extra" ],
28
24
)
@@ -35,7 +31,7 @@ def test_list_missions(
35
31
"""Scenario: List uploaded missions"""
36
32
# Given files "mission1.json" and "mission2.json" exist in the mission directory
37
33
for filename in filenames :
38
- as_config_file (mission_dir , filename ).touch ()
34
+ (mission_dir / filename ).touch ()
39
35
config_gen = ReforgerConfigGenerator (
40
36
base_config_file = base_config , target_folder = mission_dir
41
37
)
0 commit comments