def get_working_path(working_path_name): """Returns the working path""" return os.path.join(Configuration.get_working_path(), working_path_name)
def test_get_working_path_default(): assert Configuration.get_working_path() == "/tmp/nestor/work"
def test_get_working_path_default(self): self.assertEqual(Configuration.get_working_path(), "/tmp/nestor/work")
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"
def test_get_working_path_configured(self): self.assertEqual(Configuration.get_working_path(), "/a-custom-working-path")