Henrik Levkowetz
cb9006eb26
Changed skip messages from test suites to use print() instead of sys.stderr.write(), to match other output from the test runner.
...
- Legacy-Id: 18087
2020-06-27 17:32:02 +00:00
Henrik Levkowetz
5a2a255bcb
Added django urlconfig namespace support in ietf.utils.test.get_callbacks() (needed when testing the reverse lookups in templates for oidc_provider).
...
- Legacy-Id: 17917
2020-06-06 20:19:54 +00:00
Henrik Levkowetz
bc05e7a8d0
Refactored many instances of msg.get_payload(decode=True).decode('utf-8') and similar to get_payload_text(msg), which uses msg.get_charset() to get the actual charset to do the decoding, in a consistent manner. Also removed some instances of force_str, but more remain.
...
- Legacy-Id: 17807
2020-05-16 20:20:05 +00:00
Henrik Levkowetz
726fcbf27d
Removed all __future__ imports.
...
- Legacy-Id: 17391
2020-03-05 23:53:42 +00:00
Henrik Levkowetz
ab173cb2eb
Removed further six usage: six.string_types, six.integer_types, six.moves.urllib instances.
...
- Legacy-Id: 17390
2020-03-05 20:46:58 +00:00
Henrik Levkowetz
33e8733b91
Fixed up mypy issues or added type:ignore comments as needed for a clean mypy run.
...
- Legacy-Id: 16772
2019-09-30 15:42:18 +00:00
Henrik Levkowetz
ad1821f63a
Enabled the wiki management command under py2
...
- Legacy-Id: 16471
2019-07-16 19:12:00 +00:00
Henrik Levkowetz
bdc73e771a
Python2/3 compatibility: replaced six.ensure_text() with either six.text_type or django's force_text(), depending on the case, and fixed a variable scope issue.
...
- Legacy-Id: 16461
2019-07-16 13:20:05 +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
e39ac52071
Removed 2to3-generated list() around .items() iterator in for loops.
...
- Legacy-Id: 16315
2019-06-27 18:11:17 +00:00
Henrik Levkowetz
d7f5c84182
Initial 2to3 patch with added copyright statement updates.
...
- Legacy-Id: 16309
2019-06-27 14:40:54 +00:00
Henrik Levkowetz
426870b766
Merged in the Document and DocAlias primary key change and m2m work in ^/personal/henrik/6.96.1-docalias.
...
- Legacy-Id: 16261
2019-06-15 12:00:48 +00:00
Henrik Levkowetz
815602351f
This is a series of 50 migrations that changes the Document and DocAlias
...
primary keys from character strings to integers, and makes corresponding code
changes.
This was prompted by database limitations discovered when trying to make
DocAlias use a m2m document field; with 255 long strings as primary keys for
Document and DocAlias this violated the MySQL database limitations.
Changing the primary keys to integers should also improve efficiency.
Due to the data migrations which create the new integer primary keys and adds
corresponding integer foreign keys matching the previous string foreign keys
in all tables having foreign keys to Document and DocAlias, some of these
migrations take a long time. The total set of migrations are expected to have
a runtime on the order of 2 hours.
- Legacy-Id: 16237
2019-06-10 11:32:46 +00:00
Henrik Levkowetz
ca1f3340c0
Changed a ReviewAssignmentDocEvent type from 'closed_review_request' to 'closed_review_assignment', for consistency and readability.
...
- Legacy-Id: 16181
2019-05-02 12:38:41 +00:00
Henrik Levkowetz
682ddee8e4
Reverted earlier application of on_behalf_of() at mail sending call points, and instead did all on_behalf_of processing in condition_message(). Added insertion of Reply-To header fields in this case. Changed all use of the mail-sending 'extra' parameters to use value lists. Updated a bunch of tests accordingly.
...
- Legacy-Id: 16020
2019-03-11 17:01:33 +00:00
Henrik Levkowetz
2b811b3d3d
Updated the tests to always use @ietf.org addresses where appropriate, and not do so when not appropriate. All test user login addresses have been changed away from @ietf.org.
...
- Legacy-Id: 15988
2019-03-04 20:08:48 +00:00
Robert Sparks
1e1d92aa0d
Simple tests of some log utilities. Commit ready for merge.
...
- Legacy-Id: 15846
2018-12-20 20:33:02 +00:00
Robert Sparks
a4f334195e
simple test of BowerStorageFinder. Commit ready for merge.
...
- Legacy-Id: 15845
2018-12-20 19:13:35 +00:00
Henrik Levkowetz
2397f97da3
Updated test_unicode() to work with the latest version of the unidecode lib.
...
- Legacy-Id: 15780
2018-11-20 16:08:51 +00:00
Henrik Levkowetz
1d604b7cd9
Another name test tweak
...
- Legacy-Id: 15773
2018-11-13 21:50:28 +00:00
Henrik Levkowetz
fad6311a13
Fixed a test problem.
...
- Legacy-Id: 15772
2018-11-13 21:12:25 +00:00
Henrik Levkowetz
d6caf615e0
Added testing of test_unidecode() and another name_parts() test case, and removed some debug.statements.
...
- Legacy-Id: 15771
2018-11-13 19:31:18 +00:00
Henrik Levkowetz
0735021d2b
Added a test for various name part combinations, and fixed a couple of issues with utils.name.name_parts().
...
- Legacy-Id: 15753
2018-11-11 15:12:20 +00:00
Henrik Levkowetz
ef3cbf4684
Merged in [15595] from rjsparks@nostrum.com:
...
Converted stats, submit, sync. and utils/test to use factories. Excluded utils/test_data from coverage checks.
- Legacy-Id: 15599
Note: SVN reference [15595] has been migrated to Git commit 39e76a836996ec9ed8ea449c92bdfae91c3dbaae
2018-10-19 12:54:58 +00:00
Henrik Levkowetz
4db4dd16b0
Merged in ^/personal/henrik/6.79.1-gdpr@15180 containing GDPR-adaptations.
...
- Legacy-Id: 15181
2018-05-28 11:26:24 +00:00
Robert Sparks
25e9893a13
Changed how the mail utilities handle lists in their override and extra arguments. Added a test for send_mail_preformatted exercising override and extra. Commit ready for merge.
...
- Legacy-Id: 15153
2018-05-22 15:38:04 +00:00
Henrik Levkowetz
61a16856ad
Updated the admin interface to use the simple-history admin support for Person history.
...
- Legacy-Id: 15097
2018-05-01 11:07:12 +00:00
Henrik Levkowetz
ec6424c9c4
Merged in [14882] from rjsparks@nostrum.com:
...
Replaced line that had mysteriously been deleted before commit. Sorry for the noise.
- Legacy-Id: 14905
Note: SVN reference [14882] has been migrated to Git commit 4a7cdf26d3
2018-03-24 13:39:49 +00:00
Henrik Levkowetz
a485c74314
Merged in [14880] from rjsparks@nostrum.com:
...
Added a Draft test suite.
- Legacy-Id: 14901
Note: SVN reference [14880] has been migrated to Git commit e09a28cad2
2018-03-22 16:34:10 +00:00
Henrik Levkowetz
f3f77dce48
Changed order of arguments in a test assert for better error legibility.
...
- Legacy-Id: 14774
2018-03-13 12:38:53 +00:00
Henrik Levkowetz
4dad8cdf9a
Added a test to check for missing admin models, and added the admin models that were currently missing.
...
- Legacy-Id: 14021
2017-08-01 14:00:29 +00:00
Robert Sparks
2c92aa213d
Treat Area Groups similar to Working Groups and Research Groups where it makes sense to do so. Commit ready for merge.
...
- Legacy-Id: 13832
2017-07-11 19:12:21 +00:00
Henrik Levkowetz
97a5ed1f6c
Added a test to verify that we can load the 500 page template
...
- Legacy-Id: 13765
2017-07-03 21:17:45 +00:00
Ole Laursen
5b677dc6ba
Merge author stats branch into new branch from trunk
...
- Legacy-Id: 13159
2017-03-28 14:36:40 +00:00
Henrik Levkowetz
988a2b808f
Added explicit charset setting and consistent encoding to several email paths through the datatracker. After introducing support for non-ascii names in email addresses, using role.formatted_email() to insert names into email content doesn't work any more, since uncode names will now be rfc2047-encoded in formatted_email(). Added another method role.name_and_email() for this case. Replaced another case of '%s <%s>' name-and-email formatting with formataddr(). Fixed some tests which did not send unicode email bodies to the email functions. Fixes issue #2017 .
...
- Legacy-Id: 12896
2017-02-21 19:17:10 +00:00
Ole Laursen
882579bab3
Don't check url reverses on the form admin:blahblah for the time being
...
- Legacy-Id: 12845
2017-02-15 18:39:35 +00:00
Henrik Levkowetz
aa5e61d958
Updated all urlpatterns to use ietf.utils.urls.url() instead of django's,
...
in order to autogenerate dotted path url pattern names. Updated a number
of url reverses to use dotted path, and removed explicit url pattern names
as needed.
Changed some imports to prevent import of ietf.urls before django
initialization was complete.
Changed 3 cases of form classes being curried to functions; django 1.10
didn't accept that.
Started converting old-style middleware classes to new-style middleware
functions (incomplete).
Tweaked a nomcom decorator to preserve function names and attributes, like
a good decorator should.
Replaced the removed django templatetag 'removetags' with our own version
which uses bleach, and does sanitizing in addition to removing explicitly
mentionied html tags.
Rewrote the filename argument handling in a management command which had
broken with the upgrade.
- Legacy-Id: 12818
2017-02-11 14:43:01 +00:00
Henrik Levkowetz
481a96c935
Changed the handling of skip tests and messages in order to show which tests will be skipped, and why, at the start of a test run.
...
- Legacy-Id: 12568
2016-12-17 21:49:53 +00:00
Henrik Levkowetz
db7e554c5e
Changed to using TestCase from ietf.utils, and turned off coverage checking when loading templates in TemplateChecksTestCase.
...
- Legacy-Id: 12470
2016-12-07 11:31:31 +00:00
Henrik Levkowetz
0bb7854591
Merged django18 work forward to 6.39
...
- Legacy-Id: 12449
2016-12-05 14:01:25 +00:00
Henrik Levkowetz
cec0f33817
Removed unused stuff.
...
- Legacy-Id: 12409
2016-11-28 21:20:28 +00:00
Henrik Levkowetz
53d68af9cd
Adapted the utils template tests to the new template handling in Django 1.8.
...
- Legacy-Id: 12407
2016-11-28 21:05:17 +00:00
Henrik Levkowetz
964d34282f
Added common patterns for template file names to ignore when testing template parsing and template test coverage.
...
- Legacy-Id: 12354
2016-11-16 02:14:32 +00:00
Henrik Levkowetz
bb7d3b476f
Tweaked the create_group_wiki management command and its test to show more information on failures.
...
- Legacy-Id: 12273
2016-11-07 17:13:09 +00:00
Henrik Levkowetz
1d6853037e
Updated the create_group_wikis management command with additional switches to make it easier to do test deployment of individual wikis.
...
- Legacy-Id: 12240
2016-10-30 18:10:41 +00:00
Henrik Levkowetz
27cd21155c
Fixed a bug in testing for directory existence in the test setup.
...
- Legacy-Id: 12185
2016-10-19 22:38:28 +00:00
Henrik Levkowetz
c22842a7c4
Made the wiki glue test skippable, in case the python subversion bindings are unavailable. Added creation of temporary directories also for the svn repositores created for wikis during testing.
...
- Legacy-Id: 12183
2016-10-19 21:14:20 +00:00