Henrik Levkowetz
660c81c272
Tweaked the file content read refactoring in [14406] to try latin-1 conversion if unicode doesn't work.
...
- Legacy-Id: 14410
Note: SVN reference [14406] has been migrated to Git commit 967ece7e7d
2017-12-10 17:48:09 +00:00
Henrik Levkowetz
967ece7e7d
Started refactoring of reading text from document files (drafts, charters, etc.) in order to normalise on one way of doing this, and making that return unicode rather than undecoded bytes. This is the first step of two, in order to gauge the possible issues and report on discrepancies.
...
- Legacy-Id: 14406
2017-12-08 21:51:11 +00:00
Henrik Levkowetz
3cd3c3526f
Tweaked the coverage_changes management comand output.
...
- Legacy-Id: 14402
2017-12-06 13:31:33 +00:00
Henrik Levkowetz
57c18ef3fe
Changed settings and handling of adhoc wiki paths to be more testing-friendly.
...
- Legacy-Id: 14390
2017-12-04 15:09:03 +00:00
Henrik Levkowetz
47a0b9d3ce
Changed handling of yang modeules from drafts with errors, to not place them in separate directories, due to possible follow-on effects. Added use of IANA-held modules when validating, and regular rsyncing from IANA.
...
- Legacy-Id: 14389
2017-12-04 14:37:15 +00:00
Henrik Levkowetz
98d234cd86
Refactored the handling of BallotDocEvent in tests, only creating them as needed, in preparation for stricter checks on state transitions to avoid mismatches between state and ballot.
...
- Legacy-Id: 14380
2017-11-30 16:02:31 +00:00
Henrik Levkowetz
b29e096f92
Added a test for the IESG past documents page, and tweaked some test documents to have titles.
...
- Legacy-Id: 14303
2017-11-04 16:15:39 +00:00
Henrik Levkowetz
260bac9346
Updated some tests to match api views refactoring.
...
- Legacy-Id: 14295
2017-11-03 16:42:09 +00:00
Henrik Levkowetz
3269a696fe
Variable naming fix
...
- Legacy-Id: 14286
2017-11-03 10:36:50 +00:00
Henrik Levkowetz
23a3056260
Fixed a typo.
...
- Legacy-Id: 14270
2017-11-01 14:51:08 +00:00
Henrik Levkowetz
6e23f99019
Improved the help message for the run_yang_model_checks management command.
...
- Legacy-Id: 14267
2017-11-01 14:39:53 +00:00
Henrik Levkowetz
48fe02d58c
Permit tildes in romanization of draft author names when looking for draft authors. Can be used in romanization of arabic names.
...
- Legacy-Id: 14256
2017-11-01 11:51:24 +00:00
Henrik Levkowetz
af64f0e064
Fixed a call parameter list discrepancy.
...
- Legacy-Id: 14252
2017-11-01 05:07:35 +00:00
Henrik Levkowetz
09d8ad1e1b
Fixed some pyflakes issues.
...
- Legacy-Id: 14238
2017-10-30 11:47:05 +00:00
Henrik Levkowetz
1a7e9b619a
Added support for ad-hoc trac instances, with arbitrary names and filesystem paths, but still bound to a particular group's roles for management of trac admin rights.
...
- Legacy-Id: 14232
2017-10-30 11:10:15 +00:00
Henrik Levkowetz
9be7d57a03
Tweaked the test-runner random state handling to display the correct random state filename and make sure to set the same random state.
...
- Legacy-Id: 14209
2017-10-14 12:05:01 +00:00
Henrik Levkowetz
0e00adc5ee
Another tweak to the draft author extraction code, to handle some name transliterations using multiple leading grave accents.
...
- Legacy-Id: 14149
2017-09-21 09:28:18 +00:00
Henrik Levkowetz
2c1438c240
Moved unidecode_name from utils.text to person.name.
...
Modified UserFactory to use a new locale for each new user, instead of the
same locale for a whole test run. This (almost) ensures the exercise of
code to deal with non-ascii names, something which would not happen if a
locale with ascii names was chosen at the start of a run.
Modified name.initials() to not use non-word characters as initials.
Modified unidecode_name() to do more normalization, to conform to the
conventions used in internet-drafts.
Added saving of the factory-boy random state in order to be able to re-run
a test suite with the same pseudo-random sequence as in a previous failed
run.
Fixed an issue with email formatting in test_api_submit_ok().
Modified the draft author extraction code to deal better with names with
embedded apostrophes.
- Legacy-Id: 14141
2017-09-20 15:36:30 +00:00
Henrik Levkowetz
1530a6c394
Added a new TestCase assertion: assertMailboxContains(), to be able to better express some test cases.
...
- Legacy-Id: 14139
2017-09-19 19:47:48 +00:00
Henrik Levkowetz
33b275b04f
Added ietf.utils.text.unidecode_name() and replaced various uses of unidecode() with it, in order to normalize the generation of ascii versions of names, to avoid different practices in space stripping and space normalization in different parts of the code.
...
- Legacy-Id: 14128
2017-09-17 15:12:18 +00:00
Henrik Levkowetz
9f785c0dce
Tweaked the test util function create_person() to create ascii-only .ascii fields, which it did not do before.
...
- Legacy-Id: 14123
2017-09-16 09:21:45 +00:00
Henrik Levkowetz
aafd6290a6
Added an option to ietf.utils.draft.Draft to pull document name from the source file name.
...
- Legacy-Id: 14089
2017-08-31 14:48:43 +00:00
Henrik Levkowetz
aaccbba6e8
Fixed a bug in coverage_changes.
...
- Legacy-Id: 14037
2017-08-10 10:53:59 +00:00
Henrik Levkowetz
1eeaf49c5c
Added an error exit when the test runner is invoked with incompatible switches (--parallel and --html-report)
...
- Legacy-Id: 14024
2017-08-02 13:00:16 +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
Henrik Levkowetz
138f3d7382
Fixed a variable initialization issue.
...
- Legacy-Id: 14009
2017-07-30 14:33:34 +00:00
Henrik Levkowetz
2070a4efcf
Fixed a pyflakes issue.
...
- Legacy-Id: 14008
2017-07-30 13:55:30 +00:00
Henrik Levkowetz
8a53653682
Added detailed line-by line changes in code coverage to the coverage_changes management command. Use verbosity 2 or higher.
...
- Legacy-Id: 14007
2017-07-30 13:50:06 +00:00
Henrik Levkowetz
d00921b94b
Added a new release-coverage format which whould make it easier to show line-by-line code test coverage changes in the future.
...
- Legacy-Id: 13967
2017-07-24 17:38:00 +00:00
Henrik Levkowetz
2de6855ccd
Fixed a time arithmetics issue in meeting cutoff date methods
...
- Legacy-Id: 13966
2017-07-23 14:47:46 +00:00
Henrik Levkowetz
15f8b4504e
Change the test telechat dates so that the first active telechat doesn't change to lie in the past if the tests are run across midnight.
...
- Legacy-Id: 13889
2017-07-15 10:01:35 +00:00
Henrik Levkowetz
86b252c90e
Some refactoring of the agenda and minutes validation work.
...
- Legacy-Id: 13850
2017-07-13 10:42:48 +00:00
Henrik Levkowetz
46fc7b77fd
Added more validation of extension, mime type, etc. for uploaded meeting agendas and minutes. Added '.md' (markdown) as an accepted file type. Html with frames is now rejected. Factored out validation code into separate functions.
...
- Legacy-Id: 13849
2017-07-12 22:45:57 +00:00
Henrik Levkowetz
d2395f9521
Merged in [13832] from rjsparks@nostrum.com:
...
Treat Area Groups similar to Working Groups and Research Groups where it makes sense to do so.
- Legacy-Id: 13836
Note: SVN reference [13832] has been migrated to Git commit 2c92aa213d
2017-07-11 21:57:01 +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
95ddc35eae
Added wiki creation for groups in state 'bof'
...
- Legacy-Id: 13829
2017-07-11 16:06:00 +00:00
Henrik Levkowetz
2c39de61ab
Replaced the local copy of the draft/rfc htmlization code with rfc2html as installed modeule.
...
- Legacy-Id: 13827
2017-07-11 13:52:08 +00:00
Henrik Levkowetz
eceed7476d
Added the html_report switch setting to the test runner object.
...
- Legacy-Id: 13822
2017-07-09 18:10:51 +00:00
Henrik Levkowetz
ca921fe45d
Added a switch to control generation of the code coverage html report, which now defaults to false. The report can be generated post-testing with "coverage html -d static/coverage/".
...
- Legacy-Id: 13821
2017-07-09 16:50:38 +00:00
Henrik Levkowetz
d26c7085c6
Added code coverage settings and configuration to ignore debug-related lines of code.
...
- Legacy-Id: 13817
2017-07-09 15:00:22 +00:00
Henrik Levkowetz
42b1a41227
Added the new format '4' to the list of recognized formats in the coverage_changes management command.
...
- Legacy-Id: 13766
2017-07-03 21:18:46 +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
Henrik Levkowetz
fb88596c59
Fixed an issue with the scope of the logfunc variable in production.
...
- Legacy-Id: 13761
2017-07-03 14:03:53 +00:00
Henrik Levkowetz
db96292229
Added a utility function to show just the text content of the test client response.
...
- Legacy-Id: 13737
2017-06-30 11:45:24 +00:00
Henrik Levkowetz
2070bbfed6
Merged in [13722] and [13712] from rcross@amsl.com:
...
Remove all use of request.session from secretariat apps. Add tests for affected views. Fixes #1455 .
- Legacy-Id: 13724
Note: SVN reference [13712] has been migrated to Git commit 915b445bcffcd4687fb1677230b98282d22dd9a0
Note: SVN reference [13722] has been migrated to Git commit 3a2cb9d3d846168f75d9796b4e5383bdf10b1f60
2017-06-28 14:55:10 +00:00
Henrik Levkowetz
f6f0278859
Changed the url coverage code to handle deeper chains of url includes, and to handle url includes through url lists in addition to url modules. Added information in the release coverage dictionaries about the view functions coupled to the urls.
...
- Legacy-Id: 13706
2017-06-22 15:07:06 +00:00
Henrik Levkowetz
5e80e00aea
Corrected the settings names used in the yang extraction command.
...
- Legacy-Id: 13695
2017-06-20 14:06:42 +00:00
Henrik Levkowetz
b42f1cbeb5
Replaced the use of unaccent.asciify(), which has similar functionality to unidecode.unidecode(). Changed the draft parser to work exclusively with unicode text, which both makes the removal of unaccent easier, and takes us closer to Py35 compatibility. Adjusted callers of the draft parser to send in unicode.
...
- Legacy-Id: 13673
2017-06-18 18:23:18 +00:00
Henrik Levkowetz
be80e68b47
Corrected the spelling of norwegian words in unaccent.py
...
- Legacy-Id: 13671
2017-06-18 09:33:51 +00:00
Henrik Levkowetz
a18cf20868
Removed code which has been marked as unreachable since February/March 2017 without triggering any usage indications.
...
- Legacy-Id: 13667
2017-06-17 17:54:40 +00:00