mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
use imported List
fail test if non-existing dir exists Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
@@ -313,7 +313,7 @@ class TestTasks(DirectoriesMixin, TestCase):
|
||||
)
|
||||
nonexistingdir = "/nowhere"
|
||||
if os.path.isdir(nonexistingdir):
|
||||
self.skipTest("non-existing dir exists")
|
||||
self.fail("non-existing dir exists")
|
||||
else:
|
||||
with self.assertLogs("paperless.tasks", level="WARNING") as cm:
|
||||
tasks.save_to_dir(test_file, target_dir=nonexistingdir)
|
||||
|
Reference in New Issue
Block a user