mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-20 13:15:14 +02:00
refactor: ruff autofixes
This commit is contained in:
455 files changed
+12322
-14762
No files matched your search
@@ -23,7 +23,7 @@ from unittest.mock import MagicMock
|
||||
from gns3server.utils.file_watcher import FileWatcher
|
||||
|
||||
|
||||
@pytest.mark.parametrize("strategy", ['mtime', 'hash'])
|
||||
@pytest.mark.parametrize("strategy", ["mtime", "hash"])
|
||||
@pytest.mark.asyncio
|
||||
async def test_file_watcher(tmpdir, strategy):
|
||||
|
||||
@@ -38,7 +38,7 @@ async def test_file_watcher(tmpdir, strategy):
|
||||
callback.assert_called_with(str(file))
|
||||
|
||||
|
||||
@pytest.mark.parametrize("strategy", ['mtime', 'hash'])
|
||||
@pytest.mark.parametrize("strategy", ["mtime", "hash"])
|
||||
@pytest.mark.asyncio
|
||||
async def test_file_watcher_not_existing(tmpdir, strategy):
|
||||
|
||||
@@ -52,7 +52,7 @@ async def test_file_watcher_not_existing(tmpdir, strategy):
|
||||
callback.assert_called_with(str(file))
|
||||
|
||||
|
||||
@pytest.mark.parametrize("strategy", ['mtime', 'hash'])
|
||||
@pytest.mark.parametrize("strategy", ["mtime", "hash"])
|
||||
@pytest.mark.asyncio
|
||||
async def test_file_watcher_list(tmpdir, strategy):
|
||||
|
||||
|
||||
Reference in new issue
Block a user