Пример #1
0
 def test_check_valid_graph(self, good_graph1):
     # Similar to the previous test, but with the correct owner field
     validate_schema(instance=good_graph1, schema_url=TC_SCHEMA_URL)
Пример #2
0
 def test_check_invalid_graph2(self, bad_graph2):
     # This should fail as the owner's email ID is not valid
     with pytest.raises(ValidationError):
         validate_schema(instance=bad_graph2, schema_url=TC_SCHEMA_URL)
Пример #3
0
 def test_check_invalid_graph(self, bad_graph1):
     # This file lacks the "task" property under "tasks"
     with pytest.raises(ValidationError):
         validate_schema(instance=bad_graph1, schema_url=TC_SCHEMA_URL)
Пример #4
0
 def test_check_valid_graph(self, good_graph1):
     # Similar to the previous test, but with the correct owner field
     validate_schema(instance=good_graph1, schema_url=TC_SCHEMA_URL)
Пример #5
0
 def test_check_invalid_graph2(self, bad_graph2):
     # This should fail as the owner's email ID is not valid
     with pytest.raises(ValidationError):
         validate_schema(instance=bad_graph2, schema_url=TC_SCHEMA_URL)
Пример #6
0
 def test_check_invalid_graph(self, bad_graph1):
     # This file lacks the "task" property under "tasks"
     with pytest.raises(ValidationError):
         validate_schema(instance=bad_graph1, schema_url=TC_SCHEMA_URL)