def test_env_config_missing(): assert [] == config._env_config()
def test_env_missing(self): with mock.patch.dict(os.environ, {}, clear=True): self.assertEqual([], config._env_config())
def test_env_config_present(): assert ["/some/path"] == config._env_config()
def test_env_present(self): with mock.patch.dict(os.environ, {"PYTHON_GITLAB_CFG": "/some/path"}): self.assertEqual(["/some/path"], config._env_config())