mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	break long lines (pep8)
This commit is contained in:
		@@ -132,7 +132,8 @@ class MatchingModel(models.Model):
 | 
			
		||||
        '''
 | 
			
		||||
        findterms = re.compile(r'"([^"]+)"|(\S+)').findall
 | 
			
		||||
        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):
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -16,9 +16,11 @@ class TestMatching(TestCase):
 | 
			
		||||
                matching_algorithm=getattr(klass, algorithm)
 | 
			
		||||
            )
 | 
			
		||||
            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:
 | 
			
		||||
                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):
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user