Add an ignore regex expression for the footer, so date, version and contact information changes doesn't trigger diffs
- Legacy-Id: 711
This commit is contained in:
parent
c05019128f
commit
e6343f614d
|
@ -304,6 +304,10 @@ class UrlTestCase(TestCase):
|
|||
else:
|
||||
testtext = reduce_text(response.content)
|
||||
goodtext = reduce_text(goodhtml)
|
||||
# Always ignore some stuff
|
||||
for regex in module.ignores["always"]:
|
||||
testtext = re.sub(regex, "", testtext)
|
||||
goodtext = re.sub(regex, "", goodtext)
|
||||
if "ignore" in codes:
|
||||
ignores = codes["ignore"].split("/")
|
||||
for ignore in ignores:
|
||||
|
|
1
test/ignore/always/footer.regex
Normal file
1
test/ignore/always/footer.regex
Normal file
|
@ -0,0 +1 @@
|
|||
Made with django *v\d+\.\d+, (Mon|Tue|Wed|Thu|Fri|Sat|Sun), \d+ (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) 20\d\d - web[-a-z]+@ietf.org
|
Loading…
Reference in a new issue