bugbear B007
This commit is contained in:
parent
cf5f7bfd16
commit
63b0607f58
|
@ -156,7 +156,7 @@ class RedditDownloader(RedditConnector):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def scan_existing_files(directory: Path) -> dict[str, Path]:
|
def scan_existing_files(directory: Path) -> dict[str, Path]:
|
||||||
files = []
|
files = []
|
||||||
for (dirpath, dirnames, filenames) in os.walk(directory):
|
for (dirpath, _dirnames, filenames) in os.walk(directory):
|
||||||
files.extend([Path(dirpath, file) for file in filenames])
|
files.extend([Path(dirpath, file) for file in filenames])
|
||||||
logger.info(f"Calculating hashes for {len(files)} files")
|
logger.info(f"Calculating hashes for {len(files)} files")
|
||||||
|
|
||||||
|
|
|
@ -214,7 +214,7 @@ def test_format_full_with_index_suffix(
|
||||||
|
|
||||||
def test_format_multiple_resources():
|
def test_format_multiple_resources():
|
||||||
mocks = []
|
mocks = []
|
||||||
for i in range(1, 5):
|
for _i in range(1, 5):
|
||||||
new_mock = MagicMock()
|
new_mock = MagicMock()
|
||||||
new_mock.url = "https://example.com/test.png"
|
new_mock.url = "https://example.com/test.png"
|
||||||
new_mock.extension = ".png"
|
new_mock.extension = ".png"
|
||||||
|
|
Loading…
Reference in a new issue