Commit graph

41 commits

Author SHA1 Message Date
Henrik Levkowetz 1ec697c90a Slightly better 'skip' messages from ietf/tests.py
- Legacy-Id: 354
2007-06-12 23:01:16 +00:00
Henrik Levkowetz dd37257c0c Only print the first 100 lines of a long diff. New soup2html code for spacing associated with certain tags.
- Legacy-Id: 337
2007-06-12 17:52:07 +00:00
Henrik Levkowetz 6acb406762 Don't loose the full url when doing base-url / query-args splitting
- Legacy-Id: 332
2007-06-12 14:42:55 +00:00
Henrik Levkowetz 0374ea9f4e Consistensy fix for test result lines
- Legacy-Id: 331
2007-06-12 09:22:31 +00:00
Henrik Levkowetz 24b3eeb3d3 For use with the django test client, parse test urls into a base-url / query-args-dict pair.
- Legacy-Id: 323
2007-06-11 21:12:50 +00:00
Henrik Levkowetz 0d69f63829 Consistency fix...
- Legacy-Id: 322
2007-06-11 20:29:25 +00:00
Henrik Levkowetz c05bcfce8f Announce diff success for both empty diff and diff matching stored diff.
- Legacy-Id: 319
2007-06-11 19:05:17 +00:00
Henrik Levkowetz a3f93df8a4 Clear the diff when 2 ''lines'' are left, rather than 2 ''words''.
- Legacy-Id: 318
2007-06-11 18:56:43 +00:00
Henrik Levkowetz e7a13bff68 * Adding 3 generic chunks, which will ignore the A-hat diffs and the
'produced by' diffs.
 * Updating ietf/tests.py to handle diff chunks right
 - Legacy-Id: 316
2007-06-11 18:44:49 +00:00
Henrik Levkowetz 8e8c3ff5e2 * ietf/tests.py: Remove filetime() again -- not using it.
* ietf/utils/soup2text.py: Do line ending normalization.
 - Legacy-Id: 315
2007-06-11 17:26:59 +00:00
Henrik Levkowetz 8f81a7a7de Adding the ability to define generic diff chunks which should be ignored. Fixing the inverted filename indication in the unified diff.
- Legacy-Id: 311
2007-06-11 16:41:24 +00:00
Henrik Levkowetz deecbc9da3 Don't list URLs which have explicit tests as Skipped during the fallback URL test.
- Legacy-Id: 307
2007-06-11 09:36:45 +00:00
Henrik Levkowetz 0452fca7d2 * ietf/tests.py, in reduce(): add ad-hoc fix for pathologic case of not
closing <li> tags.  BeautifulSoup can handle it, but the recursive text
   rendering code in soup2text recurses too deeply with a sufficiently long
   list...
 * ietf/tests.py, in setUp(): grab the right tuple element when extracting
   the URLs from the url test tuples
 * ietf/tests.py, in read_testurls(): close opened file
 * ietf/tests.py, in doUrlsTest(): narrower try/except clause, and a new one
 * soup2text.py, in para(): undo previous change
 - Legacy-Id: 304
2007-06-11 06:13:29 +00:00
Henrik Levkowetz b42e0728c8 Accept both testurl.list and testurls.list as test url list file names. Output status for good compares, too.
- Legacy-Id: 303
2007-06-11 04:43:22 +00:00
Henrik Levkowetz 2403b0b531 Enabled the temporarily disabled fallback URL tests.
- Legacy-Id: 298
2007-06-10 20:30:43 +00:00
Henrik Levkowetz 04f8f1ca0d Commenting out some diagnostic printouts. Changing the summary format so it differs from the primary result lines.
- Legacy-Id: 296
2007-06-10 18:37:50 +00:00
Henrik Levkowetz 6d5afa514a Adding diff file for an IPR url, and some ipr/tests.py tweaks.
- Legacy-Id: 294
2007-06-10 18:19:42 +00:00
Henrik Levkowetz b6c7aed469 Adding a recognizable tag for the diffs, for use by the buildbot
- Legacy-Id: 291
2007-06-10 16:40:55 +00:00
Henrik Levkowetz 06eae09af4 Removing unused imports from ietf/tests.py. Using the right Exception type in soup2html.
- Legacy-Id: 283
2007-06-10 11:43:19 +00:00
Henrik Levkowetz 0e1bda0997 Adding diff capability to the URL tests.
If you list a second url or file on a line in an urltest.list file, the
second url will be downloaded, both urls will be converted to text, and
then compared.  If there are differences, a unified diff will be output.
 - Legacy-Id: 278
2007-06-10 11:30:23 +00:00
Henrik Levkowetz f55e0b00f9 * Adding a SERVER_EMAIL setting in settings.py and settings_local_test.py
* Adding the ability to take trailing comments in testurl.list files
 * Listing skipped (not tested) urls in the URL test
 - Legacy-Id: 262
2007-06-08 17:01:07 +00:00
Henrik Levkowetz 027d471dd0 Changing the default email-from address used whentesting, and tweaking the test output
- Legacy-Id: 261
2007-06-08 16:01:52 +00:00
Henrik Levkowetz a99d598cc0 * Minor refactoring in ietf/tests.py
* Added correct dates for two entries in ipr_detail which had 0000-00-00,
   in the sql_fixup.sql file
 * Fixed test/run so it can be run from any directory
 - Legacy-Id: 258
2007-06-08 12:06:15 +00:00
Henrik Levkowetz 88666eac59 Some bugfixes after refactoring
- Legacy-Id: 257
2007-06-07 20:40:50 +00:00
Henrik Levkowetz 73bd413e07 A bit of refactoring in ietf/tests.py
- Legacy-Id: 256
2007-06-07 20:12:52 +00:00
Henrik Levkowetz b93c34d7bb Removing 200-response non-parameter url from the testurl.list; they are better handled by the fallback test.
- Legacy-Id: 254
2007-06-07 17:40:06 +00:00
Henrik Levkowetz 7962e722d3 Adding HTTP 404 error page template
- Legacy-Id: 250
2007-06-07 14:11:43 +00:00
Henrik Levkowetz 5e6a346ddc Should not compare apples and oranges
- Legacy-Id: 243
2007-06-05 18:48:14 +00:00
Henrik Levkowetz 49f8de31b4 Permitting both 404 and 200 responses for some URLs, for now; till we can run tests with a populated database
- Legacy-Id: 242
2007-06-05 18:43:48 +00:00
Henrik Levkowetz e0a30980fa Can't use the mysql XML dump as fixture -- too optimistic! ;-)
- Legacy-Id: 238
2007-06-05 17:40:06 +00:00
Henrik Levkowetz 03c18bd33d Fixing a bunch of nits pyflakes were complaining about, in order to get a clean run. There are still at least 2 cases of using undefined values which needs scrutiny.
- Legacy-Id: 235
2007-06-05 16:58:58 +00:00
Henrik Levkowetz 47a88da313 Separate response count listing and assertions
- Legacy-Id: 232
2007-06-05 10:16:17 +00:00
Henrik Levkowetz fbcd9eddf3 Added test assertions requiring no non-200 responses and no exceptions for URLs not listed in the testurls.list
- Legacy-Id: 231
2007-06-05 10:14:24 +00:00
Henrik Levkowetz b7c816cf4e Added test functionality to extract all URLs in the apps and access those that
doesn't seem to take parameters.
 - Legacy-Id: 230
2007-06-05 10:11:18 +00:00
Henrik Levkowetz 8ff20e3127 Expanded the test code which finds urlpatterns to extract all URLs
specified in the various Django apps of the site.  Also fixed the
documentation of the TemplatedForm factory to be more correct.
 - Legacy-Id: 227
2007-06-04 19:26:16 +00:00
Henrik Levkowetz d5c66de1a1 Removing superfluous import
- Legacy-Id: 222
2007-06-04 00:46:40 +00:00
Henrik Levkowetz 8953e1a647 Turning off the test error for missing test URLs for now
- Legacy-Id: 220
2007-06-04 00:32:20 +00:00
Henrik Levkowetz eedd6a8e8c Made URL check code accept comment lines and empty lines in URL file.
Commented out broken URLs in the testurl.list
Fixed a missing import in ipr/views.py
 - Legacy-Id: 219
2007-06-03 23:39:02 +00:00
Henrik Levkowetz 3d4e9286c2 Minor tweaks to test output
- Legacy-Id: 218
2007-06-03 22:43:43 +00:00
Henrik Levkowetz c7230247b1 Making the url test more verbose. Adding an initial list of urls to test.
- Legacy-Id: 217
2007-06-03 21:21:29 +00:00
Henrik Levkowetz 9bced60e2f Added a top-level test module which will run through django URLs in any
committed file named 'testurl.list' in any directory in the ietf/ tree.
There is also a test for URL coverage -- if there isn't declared test
URLs for all the url patterns in ietf/urls.py this coverage test will
fail.
 - Legacy-Id: 215
2007-06-03 19:52:06 +00:00