def test_get_placeholders(self):
     parser = Parser(self._get_data())
     placeholders = {
         "PATH_OF_CODECEPTIONS_YML": "codeception.yml",
         "UPSTREAM_PROJECT": "my-upstream-project",
         "DOWNSTREAM_PROJECT": "my-downstream-project",
         "CODECEPTION_ENVIRONMENT": "test"
     }
     assert parser.get_placeholders() == placeholders
 def test_get_placeholders_placeholder_not_found(self):
     parser = Parser({})
     with pytest.raises(Exception) as inst:
         parser.get_placeholders()
     assert str(inst.value) == "Placeholder field was not found."