aboutsummaryrefslogtreecommitdiff
path: root/test/test_uploader.py
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-10-16 18:23:23 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-10-16 18:38:09 +0200
commitfa2f913da41e5dbf33c3a6372372da8c53d519ee (patch)
treee070121cc8e59bd937f52445e5cd7854f0921aff /test/test_uploader.py
parenta43c49511ba01aea3713def375455af3f3c45396 (diff)
downloadreddit-nextcloud-importer-fa2f913da41e5dbf33c3a6372372da8c53d519ee.tar.gz
reddit-nextcloud-importer-fa2f913da41e5dbf33c3a6372372da8c53d519ee.tar.bz2
reddit-nextcloud-importer-fa2f913da41e5dbf33c3a6372372da8c53d519ee.zip
fix: fix testing
Diffstat (limited to 'test/test_uploader.py')
-rw-r--r--test/test_uploader.py20
1 files changed, 0 insertions, 20 deletions
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]