Esempio n. 1
0
def test_default_filesystem_file(tmp_path):
    file: Path = tmp_path / "testfile"
    file.touch()

    fs = DefaultFilesystem()

    assert fs.exists(file)
    assert fs.is_file(file)
Esempio n. 2
0
def test_default_filesystem_dir(tmp_path):
    fs = DefaultFilesystem()

    assert fs.exists(tmp_path)
    assert fs.is_directory(tmp_path)