def test_includes_path(self, tmpdir): path = str(tmpdir) make_test_tree(path) result = functions.path_tree(path) assert result["path"] == path
def test_skip_files(self, tmpdir): path = str(tmpdir) make_test_tree(path) result = functions.path_tree(path, skip_files=['file1.txt']) assert "file1.txt" not in result["files"]
def test_includes_dirs(self, tmpdir): path = str(tmpdir) make_test_tree(path) result = functions.path_tree(path) assert "dirs" in result assert os.path.join(path, "dir1") in result["dirs"]
def test_skip_dirs(self, tmpdir): path = str(tmpdir) make_test_tree(path) result = functions.path_tree(path, skip_dirs=['dir1']) assert "dir1" not in result["dirs"]
def test_includes_files(self, tmpdir): path = str(tmpdir) make_test_tree(path) result = functions.path_tree(path) assert "files" in result assert os.path.join(path, "file1.txt") in result["files"]