Robert Sparks
f8113cb862
fix: close open things ( #5593 )
...
* fix: close open things
* fix: clean up test created files
* fix: remove one close too many
2023-05-10 11:19:34 -05:00
Lars Eggert
220be21998
chore: Use codespell to fix typos in code. ( #4797 )
...
* chore: Use codespell to fix typos in code.
Second part of replacement of #4651
@rjsparks, I probably need to revert some things here, and I also
still need to add that new migration - how do I do that?
* Revert migrations
* Migrate "Whitelisted" to "Allowlisted"
* TEST_COVERAGE_MASTER_FILE -> TEST_COVERAGE_MAIN_FILE
* Fix permissions
* Add suggestions from @jennifer-richards
2022-12-07 15:10:35 -06: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
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
f481f5c3e6
Replaced use of six with the equivalent pure python3 constructs.
...
- Legacy-Id: 16428
2019-07-08 10:43:47 +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
fc18cd93d4
Tweaked coverage_changes command. I suspect this would benefit from a rewrite.
...
- Legacy-Id: 16019
2019-03-11 16:52:09 +00:00
Henrik Levkowetz
fac57c24a7
Tweaked the wording of coverage_changes output.
...
- Legacy-Id: 15048
2018-04-17 11:35:36 +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
aaccbba6e8
Fixed a bug in coverage_changes.
...
- Legacy-Id: 14037
2017-08-10 10:53:59 +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
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
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
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
6eec4c2648
Converted all management commands which set up additional command-line switches to use the argparse approach instead of the deprecated optparse approach.
...
- Legacy-Id: 12645
2017-01-11 18:42:38 +00:00
Henrik Levkowetz
64070fa3bf
Added the ability to list absolute coverage data, not only show relative differences, to the coverage_changes management command.
...
- Legacy-Id: 11460
2016-06-22 22:05:50 +00:00
Henrik Levkowetz
02773059f2
Better usage help for the coverage_changes management command.
...
- Legacy-Id: 11193
2016-05-15 15:01:50 +00:00
Henrik Levkowetz
c17ea94b08
Updated the code to use version 4.0.1 of coverage.py for code coverage measurements. Moved the code which starts coverage measurement to settings_sqlitetest.py to avoid coverage measurements running when not doing tests. Did some additional coveage measurement refactoring.
...
- Legacy-Id: 10238
2015-10-18 20:01:57 +00:00
Henrik Levkowetz
90b97468a9
Changed to use a gzipped release coverage JSON file, instead of a plain JSON file, if the name given in settings.py ends in .gz. Reduces the current release coverage file size from ~1.6MB to ~200kB. This is a preparation for saving more information in the release coverage file than we currently do.
...
- Legacy-Id: 10235
2015-10-18 14:32:36 +00:00
Henrik Levkowetz
a23846c8be
Changed the storage format for code coverage in *coverage.json, in order to be able to calculate code coverage percentages for a subset of tested files.
...
- Legacy-Id: 9953
2015-08-01 15:07:21 +00:00
buildbot
cedb115038
Added exception capture and error message when the --release switch to coverage_changes specify a release for which there aren't any data. Also tweaked the diff output for code coverage changes.
...
- Legacy-Id: 9239
2015-03-17 16:15:04 +00:00
Henrik Levkowetz
e4c15de834
Tweaked the coverage_changes output slightly.
...
- Legacy-Id: 9165
2015-03-08 13:19:46 +00:00
Henrik Levkowetz
b7095b573f
Added a managment command to show the difference in coverage data between the latest release and the latest test run, and a test for the same.
...
- Legacy-Id: 9162
2015-03-07 22:27:02 +00:00