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