From fa2f913da41e5dbf33c3a6372372da8c53d519ee Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Sun, 16 Oct 2022 18:23:23 +0200 Subject: fix: fix testing --- test/test_uploader.py | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 test/test_uploader.py (limited to 'test') diff --git a/test/test_uploader.py b/test/test_uploader.py deleted file mode 100644 index 7fe2f44..0000000 --- a/test/test_uploader.py +++ /dev/null @@ -1,20 +0,0 @@ -import pytest - -from importer.uploader import create_folders - - -@pytest.fixture -def nxc(mocker): - return mocker.MagicMock() - - -@pytest.mark.parametrize("path,folders", [ - ("folder1", ["/folder1"]), - ("folder1/folder2", ["/folder1", "/folder1/folder2"]), - ("/folder1/folder2", ["/folder1", "/folder1/folder2"]) -]) -def test_create_folders(nxc, path, folders): - create_folders(path, nxc) - - for call, folder in zip(nxc.method_calls, folders): - assert folder == call.args[0] -- cgit v1.2.3