feat(labs): describe the lab task contract and the provisioner port
This commit is contained in:
1 parent
3de226b16c
commit
9fdaa62b9b
91 files changed
+19262
-155
No files matched your search
@@ -333,7 +333,7 @@ class AssessmentContractTest(unittest.TestCase):
|
||||
self.assertNotIn("post", self.paths["/api/v1/me/assessment-attempts/{attempt_id}"])
|
||||
self.assertNotIn("post", self.paths["/api/v1/me/assessment-attempts/{attempt_id}/result"])
|
||||
|
||||
def test_attempt_items_and_answers_keep_the_seven_public_formats(self) -> None:
|
||||
def test_attempt_items_and_answers_keep_the_public_formats(self) -> None:
|
||||
expected = {
|
||||
"choice",
|
||||
"number",
|
||||
@@ -343,7 +343,9 @@ class AssessmentContractTest(unittest.TestCase):
|
||||
"configuration",
|
||||
"practice",
|
||||
}
|
||||
self.assertEqual(union_enum_values(self.schemas["ItemContent"], self.schemas), expected)
|
||||
# A lab item is served like the others, but its lab is submitted only
|
||||
# with SubmitMyAssessmentLab, so `lab` is not an answer format.
|
||||
self.assertEqual(union_enum_values(self.schemas["ItemContent"], self.schemas), expected | {"lab"})
|
||||
self.assertEqual(union_enum_values(self.schemas["AssessmentAnswer"], self.schemas), expected)
|
||||
|
||||
def test_candidate_schemas_do_not_name_secrets_or_employer_access(self) -> None:
|
||||
|
||||
Reference in new issue
Block a user