Exemplo n.º 1
0
 def test_missing(self):
     assert PROJECT_PARENT == _find_root(None, cwd=PROJECT_PARENT)
Exemplo n.º 2
0
 def test_none(self):
     assert PROJECT_ROOT == _find_root(None, cwd=ROOT)
Exemplo n.º 3
0
 def test_current(self):
     assert PROJECT_ROOT == _find_root(PROJECT_ROOT, cwd=ROOT)
Exemplo n.º 4
0
 def test_specified(self):
     os.chdir(PROJECT_PARENT)
     assert FILES == _find_root(FILES)
Exemplo n.º 5
0
 def test_missing(self):
     assert PROJECT_PARENT == _find_root(None, cwd=PROJECT_PARENT)
Exemplo n.º 6
0
 def test_current(self):
     assert PROJECT_ROOT == _find_root(PROJECT_ROOT, cwd=ROOT)
Exemplo n.º 7
0
 def test_none(self):
     assert PROJECT_ROOT == _find_root(None, cwd=ROOT)
Exemplo n.º 8
0
 def test_specified(self):
     os.chdir(PROJECT_PARENT)
     assert FILES == _find_root(FILES)