comparison test/test_cgi.py @ 8065:e44b65651012

test: correct checksum for changed template A change I made to disable spellcheck in user.item.html caused the render funxtion to generate a diferent sha1 checksum. The test looks for the checksum. Update to the new checkum after the change.
author John Rouillard <rouilj@ieee.org>
date Tue, 09 Jul 2024 09:58:01 -0400
parents 28aa76443f58
children 603aa730b067
comparison
equal deleted inserted replaced
8064:d6b447de4f59 8065:e44b65651012
2848 self.assertEqual(self.client._error_message, ["this is an error"]) 2848 self.assertEqual(self.client._error_message, ["this is an error"])
2849 2849
2850 result = self.client.renderContext() 2850 result = self.client.renderContext()
2851 print(result) 2851 print(result)
2852 # sha1sum of classic tracker user.item.template must be found 2852 # sha1sum of classic tracker user.item.template must be found
2853 sha1sum = '<!-- SHA: 3b7ce7cbf24f77733c9b9f64a569d6429390cc3f -->' 2853 sha1sum = '<!-- SHA: 952568414163cd12b2e89e91e59ef336da64fbbe -->'
2854 self.assertNotEqual(-1, result.index(sha1sum)) 2854 self.assertNotEqual(-1, result.index(sha1sum))
2855 2855
2856 2856
2857 def testexamine_url(self): 2857 def testexamine_url(self):
2858 ''' test the examine_url function ''' 2858 ''' test the examine_url function '''

Roundup Issue Tracker: http://roundup-tracker.org/