Пример #1
0
 def test_read_schema_raises_exception(self, set_path):
     d = Deployment(set_path)
     with pytest.raises(DeployException):
         d._read_schema("blabla")
Пример #2
0
 def test_read_schema(self, set_path):
     d = Deployment(set_path)
     schema_file = os.path.join(d._pype_root, d._deploy_dir, d._schema_file)
     pprint(schema_file)
     schema = d._read_schema(schema_file)
     assert schema.get('title') == 'pype:deployment-schema'