mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-13 18:17:02 +01: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:
parent
10ca515ac5
commit
08fbcf5158
2 changed files with 6 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue