mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Clean up test formatting a bit
This commit is contained in:
		| @@ -276,11 +276,13 @@ class TestFieldPermutations(TestCase): | |||||||
|  |  | ||||||
|     def test_created_and_correspondent_and_title_and_tags(self): |     def test_created_and_correspondent_and_title_and_tags(self): | ||||||
|  |  | ||||||
|         template = ("/path/to/{created} - " |         template = ( | ||||||
|                     "{correspondent} - " |             "/path/to/{created} - " | ||||||
|                     "{title} - " |             "{correspondent} - " | ||||||
|                     "{tags}" |             "{title} - " | ||||||
|                     ".{extension}") |             "{tags}" | ||||||
|  |             ".{extension}" | ||||||
|  |         ) | ||||||
|  |  | ||||||
|         for created in self.valid_dates: |         for created in self.valid_dates: | ||||||
|             for correspondent in self.valid_correspondents: |             for correspondent in self.valid_correspondents: | ||||||
| @@ -299,10 +301,7 @@ class TestFieldPermutations(TestCase): | |||||||
|  |  | ||||||
|     def test_created_and_correspondent_and_title(self): |     def test_created_and_correspondent_and_title(self): | ||||||
|  |  | ||||||
|         template = ("/path/to/{created} - " |         template = "/path/to/{created} - {correspondent} - {title}.{extension}" | ||||||
|                     "{correspondent} - " |  | ||||||
|                     "{title}" |  | ||||||
|                     ".{extension}") |  | ||||||
|  |  | ||||||
|         for created in self.valid_dates: |         for created in self.valid_dates: | ||||||
|             for correspondent in self.valid_correspondents: |             for correspondent in self.valid_correspondents: | ||||||
| @@ -325,9 +324,7 @@ class TestFieldPermutations(TestCase): | |||||||
|  |  | ||||||
|     def test_created_and_title(self): |     def test_created_and_title(self): | ||||||
|  |  | ||||||
|         template = ("/path/to/{created} - " |         template = "/path/to/{created} - {title}.{extension}" | ||||||
|                     "{title}" |  | ||||||
|                     ".{extension}") |  | ||||||
|  |  | ||||||
|         for created in self.valid_dates: |         for created in self.valid_dates: | ||||||
|             for title in self.valid_titles: |             for title in self.valid_titles: | ||||||
| @@ -342,10 +339,7 @@ class TestFieldPermutations(TestCase): | |||||||
|  |  | ||||||
|     def test_created_and_title_and_tags(self): |     def test_created_and_title_and_tags(self): | ||||||
|  |  | ||||||
|         template = ("/path/to/{created} - " |         template = "/path/to/{created} - {title} - {tags}.{extension}" | ||||||
|                     "{title} - " |  | ||||||
|                     "{tags}" |  | ||||||
|                     ".{extension}") |  | ||||||
|  |  | ||||||
|         for created in self.valid_dates: |         for created in self.valid_dates: | ||||||
|             for title in self.valid_titles: |             for title in self.valid_titles: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Daniel Quinn
					Daniel Quinn