Пример #1
0
def get_pristine_path(pristine_path_name):
    """Returns the pristine path"""
    return os.path.join(Configuration.get_pristine_path(), pristine_path_name)
Пример #2
0
def test_get_pristine_path_default():
    assert Configuration.get_pristine_path() == "/tmp/nestor/pristine"
Пример #3
0
 def test_get_pristine_path_default(self):
     self.assertEqual(Configuration.get_pristine_path(),
                      "/tmp/nestor/pristine")
Пример #4
0
def test_get_pristine_path_configured(monkeypatch):
    monkeypatch.setenv("NESTOR_PRISTINE_PATH", "/a-custom-pristine-path")

    assert Configuration.get_pristine_path() == "/a-custom-pristine-path"
Пример #5
0
 def test_get_pristine_path_configured(self):
     self.assertEqual(Configuration.get_pristine_path(),
                      "/a-custom-pristine-path")