@@ -52,7 +52,7 @@ def test_get_executable():
52
52
assert command .get_executable ("abc.cpp" ) == "abc.e"
53
53
54
54
55
- def test_compile_programs (create_package ):
55
+ def test_compile_solutions (create_package ):
56
56
package_path = create_package
57
57
command = get_command (package_path )
58
58
solutions = command .get_solutions (None )
@@ -105,7 +105,7 @@ def test_calculate_points():
105
105
def test_run_solutions (create_package , time_tool ):
106
106
package_path = create_package
107
107
command = get_command (package_path )
108
- command .args = argparse .Namespace (program_report = False , time_tool = time_tool )
108
+ command .args = argparse .Namespace (solutions_report = False , time_tool = time_tool )
109
109
create_ins_outs (package_path , command )
110
110
command .tests = command .get_tests (None )
111
111
command .groups = list (sorted (set ([command .get_group (test ) for test in command .tests ])))
@@ -157,7 +157,7 @@ def test_validate_expected_scores_success():
157
157
command .scores = command .config ["scores" ]
158
158
159
159
# Test with correct expected scores.
160
- command .args = argparse .Namespace (programs = ["prog/abc.cpp" ], tests = None )
160
+ command .args = argparse .Namespace (solutions = ["prog/abc.cpp" ], tests = None )
161
161
results = {
162
162
"abc.cpp" : {1 : "OK" , 2 : "OK" , 3 : "OK" , 4 : "OK" },
163
163
}
@@ -166,7 +166,7 @@ def test_validate_expected_scores_success():
166
166
assert results .removed_solutions == set ()
167
167
168
168
# Test with incorrect result.
169
- command .args = argparse .Namespace (programs = ["prog/abc.cpp" ], tests = None )
169
+ command .args = argparse .Namespace (solutions = ["prog/abc.cpp" ], tests = None )
170
170
results = {
171
171
"abc.cpp" : {1 : "OK" , 2 : "OK" , 3 : "OK" , 4 : "WA" },
172
172
}
@@ -175,7 +175,7 @@ def test_validate_expected_scores_success():
175
175
assert len (results .changes ) == 1
176
176
177
177
# Test with removed solution.
178
- command .args = argparse .Namespace (programs = None , tests = None )
178
+ command .args = argparse .Namespace (solutions = None , tests = None )
179
179
results = {
180
180
"abc.cpp" : {1 : "OK" , 2 : "OK" , 3 : "OK" , 4 : "OK" },
181
181
"abc1.cpp" : {1 : "OK" , 2 : "OK" , 3 : "OK" , 4 : "WA" },
@@ -188,7 +188,7 @@ def test_validate_expected_scores_success():
188
188
189
189
# Test with added solution and added group.
190
190
command .config ["scores" ][5 ] = 0
191
- command .args = argparse .Namespace (programs = ["prog/abc.cpp" , "prog/abc5.cpp" ], tests = None )
191
+ command .args = argparse .Namespace (solutions = ["prog/abc.cpp" , "prog/abc5.cpp" ], tests = None )
192
192
results = {
193
193
"abc.cpp" : {1 : "OK" , 2 : "OK" , 3 : "OK" , 4 : "OK" , 5 : "WA" },
194
194
"abc5.cpp" : {1 : "OK" , 2 : "OK" , 3 : "OK" , 4 : "OK" , 5 : "WA" },
@@ -199,7 +199,7 @@ def test_validate_expected_scores_success():
199
199
assert len (results .added_groups ) == 1
200
200
201
201
# Test with removed group.
202
- command .args = argparse .Namespace (programs = ["prog/abc.cpp" ], tests = None )
202
+ command .args = argparse .Namespace (solutions = ["prog/abc.cpp" ], tests = None )
203
203
results = {
204
204
"abc.cpp" : {1 : "OK" , 2 : "OK" , 3 : "OK" },
205
205
}
@@ -208,7 +208,7 @@ def test_validate_expected_scores_success():
208
208
assert len (results .removed_groups ) == 1
209
209
210
210
# Test with correct expected scores and --tests flag.
211
- command .args = argparse .Namespace (programs = ["prog/abc.cpp" ], tests = ["in/abc1a.in" , "in/abc2a.in" ])
211
+ command .args = argparse .Namespace (solutions = ["prog/abc.cpp" ], tests = ["in/abc1a.in" , "in/abc2a.in" ])
212
212
results = {
213
213
"abc.cpp" : {1 : "OK" , 2 : "OK" },
214
214
}
@@ -222,7 +222,7 @@ def test_validate_expected_scores_fail(capsys):
222
222
command .scores = command .config ["scores" ]
223
223
224
224
# Test with missing points for group in config.
225
- command .args = argparse .Namespace (programs = ["prog/abc.cpp" ], tests = None )
225
+ command .args = argparse .Namespace (solutions = ["prog/abc.cpp" ], tests = None )
226
226
results = {
227
227
"abc.cpp" : {1 : "OK" , 2 : "OK" , 3 : "OK" , 4 : "OK" , 5 : "OK" },
228
228
}
0 commit comments