Skip to content

Commit

Permalink
Remove unused variable in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocaccamo committed Jan 1, 2023
1 parent 47be0a4 commit dc6754d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Expand Up @@ -22,7 +22,6 @@ repos:
rev: 6.0.0
hooks:
- id: flake8
exclude: "setup.py|tests"

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
Expand Down
3 changes: 0 additions & 3 deletions tests/test.py
Expand Up @@ -68,7 +68,6 @@ def test_assert_file_with_directory(self):
fsutil.assert_file(path)

def test_clean_dir_only_dirs(self):
path = self.temp_path("a/b/c.txt")
fsutil.create_dir(self.temp_path("x/y/z/a"))
fsutil.create_dir(self.temp_path("x/y/z/b"))
fsutil.create_dir(self.temp_path("x/y/z/c"))
Expand All @@ -90,7 +89,6 @@ def test_clean_dir_only_dirs(self):
self.assertFalse(fsutil.exists(self.temp_path("x/y/z/e")))

def test_clean_dir_only_files(self):
path = self.temp_path("a/b/c.txt")
fsutil.create_file(self.temp_path("a/b/c/f1.txt"), content="hello world")
fsutil.create_file(self.temp_path("a/b/c/f2.txt"))
fsutil.create_file(self.temp_path("a/b/c/f3.txt"), content="hello world")
Expand All @@ -110,7 +108,6 @@ def test_clean_dir_only_files(self):
self.assertTrue(fsutil.exists(self.temp_path("a/b/c/f5.txt")))

def test_clean_dir_dirs_and_files(self):
path = self.temp_path("a/b/c.txt")
fsutil.create_file(self.temp_path("a/b/c/f1.txt"))
fsutil.create_file(self.temp_path("a/b/c/f2.txt"))
fsutil.create_file(self.temp_path("a/b/c/f3.txt"))
Expand Down

0 comments on commit dc6754d

Please sign in to comment.