mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	skip test if dir exists
Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de>
This commit is contained in:
		 florian on nixos (Florian Brandes)
					florian on nixos (Florian Brandes)
				
			
				
					committed by
					
						 Florian Brandes
						Florian Brandes
					
				
			
			
				
	
			
			
			 Florian Brandes
						Florian Brandes
					
				
			
						parent
						
							7736934e43
						
					
				
				
					commit
					f0f4a103f0
				
			| @@ -144,7 +144,9 @@ class TestTasks(DirectoriesMixin, TestCase): | ||||
|             os.path.dirname(__file__), "samples", "patch-code-t.pdf" | ||||
|         ) | ||||
|         nonexistingdir = "/nowhere" | ||||
|         if not os.path.isdir(nonexistingdir): | ||||
|         if os.path.isdir(nonexistingdir): | ||||
|             self.skipTest("non-existing dir exists") | ||||
|         else: | ||||
|             with self.assertLogs("paperless.tasks", level="WARNING") as cm: | ||||
|                 tasks.save_to_dir(test_file, nonexistingdir) | ||||
|             self.assertEqual( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user