| Total Complexity | 8 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| 1 | # pylint: disable=no-self-use |
||
| 24 | class TestFindRoot: |
||
| 25 | |||
| 26 | def test_specified(self): |
||
| 27 | os.chdir(PROJECT_PARENT) |
||
| 28 | assert FILES == _find_root(FILES) |
||
| 29 | |||
| 30 | def test_none(self): |
||
| 31 | assert PROJECT_ROOT == _find_root(None, cwd=ROOT) |
||
| 32 | |||
| 33 | def test_current(self): |
||
| 34 | assert PROJECT_ROOT == _find_root(PROJECT_ROOT, cwd=ROOT) |
||
| 35 | |||
| 36 | def test_missing(self): |
||
| 37 | assert PROJECT_PARENT == _find_root(None, cwd=PROJECT_PARENT) |
||
| 38 |