Commit graph

53 commits

Author SHA1 Message Date
Lars Eggert 3234f1a121
test: Validate HTML rendered during tests (#3782) 2022-04-07 13:30:38 -03:00
Lars Eggert 335a39d4fc More fixes.
- Legacy-Id: 19884
2022-01-28 13:00:47 +00:00
Lars Eggert 5132661b06 More test fixes
- Legacy-Id: 19803
2022-01-05 11:25:25 +00:00
Lars Eggert f974fd3c04 Fix more things
- Legacy-Id: 19762
2021-12-09 06:41:00 +00:00
Jennifer Richards 81d9234d54 Use temporary directories instead of "real" filesystem for tests. Fixes #3414. Commit ready for merge.
- Legacy-Id: 19555
2021-11-05 19:45:57 +00:00
Jennifer Richards df37793e14 Use Roles instead of dedicated model for liaison statement group contacts. Fixes #3100. Commit ready for merge.
- Legacy-Id: 18828
2021-02-12 16:39:20 +00:00
Robert Sparks 3697180cc1 Reverted merge of timezone-aware migration efforts.
- Legacy-Id: 18792
2021-01-12 16:54:20 +00:00
Henrik Levkowetz 774e752a54 Snapshot of timezone-aware datatracker code. Tests pass, and the test-crawler shows only expected differences. Trunk changes merged in up to r18768.
- Legacy-Id: 18770
2020-12-16 23:53:37 +00:00
Henrik Levkowetz 726fcbf27d Removed all __future__ imports.
- Legacy-Id: 17391
2020-03-05 23:53:42 +00:00
Henrik Levkowetz 8c6eb3a30a Python2/3 compatibility: Changed the use of open() and StringIO to io.open() etc.
- Legacy-Id: 16458
2019-07-15 19:14:04 +00:00
Henrik Levkowetz 0679eaa8d4 Removed unused imports.
- Legacy-Id: 16402
2019-07-04 21:06:57 +00:00
Henrik Levkowetz f480799af9 Undid unintentional bulk commit
- Legacy-Id: 16401
2019-07-04 21:04:46 +00:00
Henrik Levkowetz fc09a59950 Added decode() of command pipe output.
- Legacy-Id: 16400
2019-07-04 21:01:39 +00:00
Henrik Levkowetz 05f275a3af Changed instances of json.loads(r.content) to r.json(). Changed some instances of assert* to assertContains.
- Legacy-Id: 16338
2019-06-30 20:44:45 +00:00
Henrik Levkowetz 15e74e89cb Converted instances of assertTrue(text in response.content) to the recommended assertContains(response, text), and similar for assertFalse(... in ...)
- Legacy-Id: 16336
2019-06-29 13:43:31 +00:00
Henrik Levkowetz d7f5c84182 Initial 2to3 patch with added copyright statement updates.
- Legacy-Id: 16309
2019-06-27 14:40:54 +00:00
Robert Sparks 25cc00f925 Refactored DocumentInfo to address overloading the external_url field with strings that are not URLs. Commit ready for merge.
- Legacy-Id: 15864
2019-01-02 22:55:00 +00:00
Robert Sparks 8004ba367a Better constrain a liaison test object to match the preconditions for the test. Commit ready for merge.
- Legacy-Id: 15580
2018-10-15 17:46:04 +00:00
Henrik Levkowetz 889babc17f Merged in [15523] from rjsparks@nostrum.com:
Converted the liaisons tests to use factories.
 - Legacy-Id: 15531
Note: SVN reference [15523] has been migrated to Git commit 5e29f56494
2018-10-07 22:15:37 +00:00
Robert Sparks 5e29f56494 Converted the liaisons tests to use factories. Commit ready for merge.
- Legacy-Id: 15523
2018-10-05 21:50:20 +00:00
Henrik Levkowetz 14c748df98 Changed the creation of temporary test dirs to use names which include the test class name, in order to make it possible to run test cases in parallel. Disabled coverage testing when running in parallel (those classes cannot be pickled and distributed to the test runner threads, and also won't pass coverage data back). Tweaked the TestCase.tempdir() method.
- Legacy-Id: 13157
2017-03-27 21:41:18 +00:00
Lars Eggert 8a70e9773d Fix various "RemovedInDjango20Warning" warnings. Commit ready for merge.
- Legacy-Id: 13112
2017-03-25 19:16:45 +00:00
Henrik Levkowetz e6a005dba6 Added a score of setting save/restores to test setup/teardown actions.
- Legacy-Id: 11436
2016-06-21 07:51:02 +00:00
Henrik Levkowetz aa61123937 Modified a few tests to handle the improved handling of error messages (not conflating them with help text any more).
- Legacy-Id: 11181
2016-05-12 13:47:10 +00:00
Henrik Levkowetz a5a502c48e Augmented the new liaison add_comment test to test the add_comment page and template.
- Legacy-Id: 10511
2015-11-20 20:16:06 +00:00
Henrik Levkowetz 6ab5365296 Merged in^/personal/rcross/v6.7.3.dev0@10465, which included [10382],[10464],[10465], introducing a number of usability fixes to the liaison tool, including a new tab for action needed statements and the ability to add comments to liaison statements' history.
- Legacy-Id: 10506
Note: SVN reference [10382] has been migrated to Git commit b7bbfd8312

Note: SVN reference [10464] has been migrated to Git commit 1ea5dcf907

Note: SVN reference [10465] has been migrated to Git commit eed28dbb49
2015-11-19 19:53:12 +00:00
Ryan Cross 1ea5dcf907 Liaison changes from IETF 94 demo. Includes tab for Action Needed statements and ability to add comments to history. Commit ready for merge
- Legacy-Id: 10464
2015-11-12 00:26:52 +00:00
Henrik Levkowetz cf7d794b09 Modified the test data to use some AD and WG chair names that contain non-ascii characters, and fixed test issues found.
- Legacy-Id: 10418
2015-11-04 07:34:56 +00:00
Ryan Cross b7bbfd8312 Various small bug fixes and tweaks to UI of Liaison Management Tool. Commit ready for merge
- Legacy-Id: 10382
2015-11-03 07:52:05 +00:00
Robert Sparks 1a277b00ec This release improves visibility into where and when the datatracker
sends email. It makes where the datatracker sends email for a given 
action data driven, and it shows where email will be sent for actions
on documents and groups.

Commit ready for merge.
 - Legacy-Id: 10186
2015-10-10 23:08:09 +00:00
Henrik Levkowetz a7667fb29e Merged in branch/amsl/liaisons/6.4.1@10160 from rcross@amsl.com, bringing in the new liaison tool.
- Legacy-Id: 10161
2015-10-09 19:48:21 +00:00
Robert Sparks 8a74604a1b Done with the second pass focusing on test coverage. Lots of test tweaks, some new tests, a couple of bugs fixed. The session request code views need to be redone to allow testing.
- Legacy-Id: 10035
2015-08-21 16:39:00 +00:00
Henrik Levkowetz 6f285a12f4 Changed the handling of some test directory creation and removal code, to be more consistent. Fixed a problem where a test didn't create and remove a test directory it used.
- Legacy-Id: 9203
2015-03-15 16:01:15 +00:00
Henrik Levkowetz b02b0a96df All tests pass, except for some pyflakes tests which I believe are fixed in trunk.
- Legacy-Id: 7579
2014-04-06 20:04:36 +00:00
Henrik Levkowetz 12f6a55dbd Made ietf/liaisons pyflakes-clean, which also fixed several places the code would crash. The IRTF chair can never have been able to use the liaison tool without getting a server 500 ...
- Legacy-Id: 7471
2014-03-15 18:10:35 +00:00
Ole Laursen e6b12350d2 Port IPR and liaisons feed setup to new feed API too
- Legacy-Id: 6943
2013-12-16 16:33:18 +00:00
Ole Laursen 5f002cf0ac Fix some test errors
- Legacy-Id: 6795
2013-12-05 15:30:17 +00:00
Ole Laursen 4250a95556 Remove proxy layer from liaisons tool, do some minor cleanups of
duplicated code, make sure the custom form widgets escape their input.

There's still a bit of custom proxying going on in the IETFHM class
hierarchy.
 - Legacy-Id: 6794
2013-12-05 13:54:48 +00:00
Ole Laursen 9457669310 Merge in changes from the old shimfree branch
- Legacy-Id: 6764
2013-11-27 12:55:50 +00:00
Henrik Levkowetz e4f4467725 Changed tests to use our own subclassed TestCase, and changed almost all fixtures to be perma_fixtures.
- Legacy-Id: 6320
2013-09-30 20:36:20 +00:00
Ole Laursen c191a691e0 Remove "names" fixture from all tests, since it's now loaded once just
after creating the test database through the global test fixture
mechanism - this speeds up multiple tests considerably
 - Legacy-Id: 6305
2013-09-29 17:35:59 +00:00
Ole Laursen 980d4e6444 Move new schema models from redesign/ to ietf/
- Legacy-Id: 3855
2012-01-24 17:17:24 +00:00
Ole Laursen f74890aec4 Adjust to handle the slightly revamped email_address() on person
- Legacy-Id: 3750
2011-12-07 19:26:53 +00:00
Ole Laursen ce74be89ef Use the test mode in the mail code when running automated tests instead of
reinventing the wheel in test_runner
 - Legacy-Id: 3620
2011-11-15 11:24:33 +00:00
Ole Laursen 5c5d534104 Add person foreign key on Role to link the role and person directly instead of through Email, this will allow us to use non-personal emails on roles
- Legacy-Id: 3418
2011-09-14 14:01:17 +00:00
Ole Laursen e5968e53e7 Skip race-conditioned test assertion
- Legacy-Id: 3374
2011-08-25 12:23:50 +00:00
Ole Laursen 89dd9b83ca Port liaison deadline reminder emails to new schema, with test;
refactor email to use the normal liaison email for the bulk of the
message instead of duplicating it
 - Legacy-Id: 3358
2011-08-23 14:45:09 +00:00
Ole Laursen 2aa97434fb Port SDO reminder emails to new schema, with test
- Legacy-Id: 3357
2011-08-23 14:10:53 +00:00
Ole Laursen 3594f08d38 Switch liaison over to using the IETF SMTP handling instead of
built-in Django, fix a couple of bugs, make pending liaison emails use
the normal liaison email template too instead of duplicating the
content
 - Legacy-Id: 3352
2011-08-23 11:27:09 +00:00
Ole Laursen b9e1753ef6 Port and proxy liaison views to new schema and add a bunch of tests
- Legacy-Id: 3350
2011-08-22 23:15:35 +00:00