コード例 #1
0
ファイル: test_lockfile.py プロジェクト: 0h-n0/simple-lock
def test_root_path_fail_cases(root_path):
    with pytest.raises(ValueError):
        SimpleLock.set_root_path(root_path)
コード例 #2
0
ファイル: test_lockfile.py プロジェクト: 0h-n0/simple-lock
def test_root_path(root_path):
    SimpleLock.set_root_path(root_path)
    assert SimpleLock.root_path == str(Path(root_path).expanduser().resolve())