Exemplo n.º 1
0
def get_working_path(working_path_name):
    """Returns the working path"""
    return os.path.join(Configuration.get_working_path(), working_path_name)
Exemplo n.º 2
0
def test_get_working_path_default():
    assert Configuration.get_working_path() == "/tmp/nestor/work"
Exemplo n.º 3
0
 def test_get_working_path_default(self):
     self.assertEqual(Configuration.get_working_path(), "/tmp/nestor/work")
Exemplo n.º 4
0
def test_get_working_path_configured(monkeypatch):
    monkeypatch.setenv("NESTOR_WORK_PATH", "/a-custom-working-path")

    assert Configuration.get_working_path() == "/a-custom-working-path"
Exemplo n.º 5
0
 def test_get_working_path_configured(self):
     self.assertEqual(Configuration.get_working_path(),
                      "/a-custom-working-path")