Skip to content

Commit 0d04853

Browse files
committed
add an user test to DumpImporterTest
1 parent c02c0b8 commit 0d04853

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

cmstestsuite/unit_tests/cmscontrib/DumpImporterTest.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ def test_import_old(self):
359359
"preferred_languages": "[\"en\", \"it_IT\"]",
360360
"contest": "contest_key",
361361
"submissions": ["sub1_key", "sub2_key"],
362+
"user_tests": ["ut_key"],
362363
},
363364
"sub1_key": {
364365
"_class": "Submission",
@@ -382,6 +383,17 @@ def test_import_old(self):
382383
"executables": {},
383384
"evaluations": [],
384385
},
386+
"ut_key": {
387+
"_class": "UserTest",
388+
"timestamp": 1_234_567_900.123,
389+
"language": "c",
390+
"user": "user_key",
391+
"task": "task_key",
392+
"files": {},
393+
"managers": {},
394+
"input": TestDumpImporter.NON_GENERATED_FILE_DIGEST,
395+
"results": []
396+
},
385397
"exe_key": {
386398
"_class": "Executable",
387399
"submission": "sub1_key",

0 commit comments

Comments
 (0)