mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	break long lines (pep8)
This commit is contained in:
		
							parent
							
								
									ad0f0a0b5d
								
							
						
					
					
						commit
						4c38b28469
					
				@ -132,7 +132,8 @@ class MatchingModel(models.Model):
 | 
				
			|||||||
        '''
 | 
					        '''
 | 
				
			||||||
        findterms = re.compile(r'"([^"]+)"|(\S+)').findall
 | 
					        findterms = re.compile(r'"([^"]+)"|(\S+)').findall
 | 
				
			||||||
        normspace = re.compile(r'\s+').sub
 | 
					        normspace = re.compile(r'\s+').sub
 | 
				
			||||||
        return [normspace(r'\s+', (t[0] or t[1]).strip()) for t in findterms(self.match)]
 | 
					        return [normspace(r'\s+', (t[0] or t[1]).strip())
 | 
				
			||||||
 | 
					                for t in findterms(self.match)]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def save(self, *args, **kwargs):
 | 
					    def save(self, *args, **kwargs):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -16,9 +16,11 @@ class TestMatching(TestCase):
 | 
				
			|||||||
                matching_algorithm=getattr(klass, algorithm)
 | 
					                matching_algorithm=getattr(klass, algorithm)
 | 
				
			||||||
            )
 | 
					            )
 | 
				
			||||||
            for string in true:
 | 
					            for string in true:
 | 
				
			||||||
                self.assertTrue(instance.matches(string), '"%s" should match "%s" but it does not' % (text, string))
 | 
					                self.assertTrue(instance.matches(string),
 | 
				
			||||||
 | 
					                    '"%s" should match "%s" but it does not' % (text, string))
 | 
				
			||||||
            for string in false:
 | 
					            for string in false:
 | 
				
			||||||
                self.assertFalse(instance.matches(string), '"%s" should not match "%s" but it does' % (text, string))
 | 
					                self.assertFalse(instance.matches(string),
 | 
				
			||||||
 | 
					                    '"%s" should not match "%s" but it does' % (text, string))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def test_match_all(self):
 | 
					    def test_match_all(self):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user