Jennifer Richards
32054111df
fix: fix failing tests and eliminate naive datetime warnings ( #4402 )
...
* test: fix timestamp construction in several doc tests
* refactor: rename date2datetime to datetime_from_date and clarify code
* chore: helper to get tzinfo for PRODUCTION_TIMEZONE
* fix: fix timezone handling in make_last_call()
* test: fix datetime generation in doc.tests_charter
* refactor: remove PRODUCTION_TIMEZONE setting
Replaces the PRODUCTION_TIMEZONE setting with a constant,
DEADLINE_TZINFO, in ietf.utils.timezone.
* test: be more careful about timezone in tests_charter.py
* test: be more careful about timezone in doc/tests.py
* fix: fix timezone handling affecting doc.tests_draft
* fix: fix timezone handling affecting tests_irsg_ballot.py
* fix: fix timezone handling affecting tests_review.py
* fix: fix timezone handling affecting last ietf.doc tests
* fix: fix timezone handling affecting last ietf.group tests
* fix: fix timezone handling affecting ietf.iesg tests
* fix: handle timezones in get_8989_eligibility_querysets
* fix: handle timezones affecting ietfauth tests
* fix: return tz-aware datetime from utc_from_string
* fix: specify timezone for constants in ipr_rfc_number()
* fix: specify tz for ipr deadlines
* fix: handle timezones affecting liaisons tests
* fix: treat leap day in get_8989_eligibility_querysets()
Manual cherry-pick of 248d6474
* test: treat leap day properly in nomcom tests
* fix: fix timezone handling affecting nomcom tests
* test: fix timezone handling in review tests
* fix: fix timezone handling affecting secr.meetings tests
* fix: handle both pytz and zoneinfo timezones in ietf.utils.timezone
* fix: fix timezone handling affecting secr.proceedings tests
* refactor: use make_aware() helper in secr.meetings tests
* test: fix timezone handling in secr.telechat tests
* fix: fix timezone handling affecting stats tests
* fix: eliminate tz-naive helpers affecting sync email parsing
* fix: include timezone data when serializing DeletedEvent data
* fix: fix timezone handling affecting sync tests
* style: remove unused import
2022-09-01 13:07:28 -03:00
Jennifer Richards
ebebdbed3e
refactor: replace datetime.now and datetime.today with timezone.now ( #4211 )
...
* refactor: replace datetime.now with timezone.now
* refactor: migrate model fields to use timezone.now as default
* refactor: replace datetime.today with timezone.now
datetime.datetime.today() is equivalent to datetime.datetime.now(); both
return a naive datetime with the current local time.
* refactor: rephrase datetime.now(tz) as timezone.now().astimezone(tz)
This is effectively the same, but is less likely to encourage accidental
use of naive datetimes.
* refactor: revert datetime.today() change to old migrations
* refactor: change a missed datetime.now to timezone.now
* chore: renumber timezone_now migration
* chore: renumber migrations
2022-08-25 13:45:16 -03:00
Ryan Cross
d216a18734
Fix Telechat app bug, draft with no ballot. Commit ready for merge
...
- Legacy-Id: 19180
2021-07-01 17:16:09 +00:00
Ryan Cross
511006fe8e
Fix error on Telechat doc detail page when conflict review doc has no ballot. Fixes #3245 . Commit ready for merge.
...
- Legacy-Id: 19054
2021-06-01 22:32:45 +00:00
Jennifer Richards
e11583a87f
Allow assignment of Person as "action holder" for a Doc, plus rudimentary automation of assignment. Fixes #3146 . Commit ready for merge.
...
- Legacy-Id: 18829
2021-02-12 20:31:00 +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
6482254a03
Merged in ^/branch/akayla/irsg/6.113.1.dev0 from peter@akayla.com.
...
This provides support for IRSG ballots, similar to the IESG ballots support which has been in use for quite some time. The IRSG ballots differ from IESG ballots in a number of ways, described in detail in the RFP and SoW for this work and implemented here.
- Legacy-Id: 17164
2019-12-20 15:00:55 +00:00
Peter E. Yee
bb7e504d14
12/13 merged into 6.113.1.dev0 with migration ordering failure
...
- Legacy-Id: 17149
2019-12-13 19:53:45 +00:00
Henrik Levkowetz
2d7c9629aa
Added 'from __future__' imports all over the place, to bring code behaviour into closer alignment between python2 and python3
...
- Legacy-Id: 16446
2019-07-15 15:40:51 +00:00
Henrik Levkowetz
f5ae2541ad
Replaced multiple asserts with assertContains().
...
- Legacy-Id: 16353
2019-07-01 14:09:12 +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
a2cafded25
Changed DocAlias to be many-to-many, in order to be able to handle STD aliases referring to multiple RFCs.
...
- Legacy-Id: 16249
2019-06-14 20:38:14 +00:00
Russ Housley
746ed7a524
Tests for IESG Telechat moderator package changes related to downrefs
...
- Legacy-Id: 16125
2019-04-01 19:22:08 +00:00
Robert Sparks
87bda66740
Converted several secr apps to use factories for tests. Commit ready for merge.
...
- Legacy-Id: 15568
2018-10-12 22:08:31 +00:00
Robert Sparks
1386a90de8
Test coverage improvements for ietf/secr/telechat/views. Commit ready for merge.
...
- Legacy-Id: 14902
2018-03-22 18:44:38 +00:00
Robert Sparks
dfc1d2aa9a
Warn when putting a draft on a telechat that is so close that directorates will probably not have time to complete a review. Fixes #2381 . Commit ready for merge.
...
- Legacy-Id: 14539
2018-01-18 22:14:30 +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
Ryan Cross
7542e8daa3
Fix issue where deferring a ballot causes 500 error in Telechat app. Fixes #1342 . Commit ready for merge.
...
- Legacy-Id: 13336
2017-05-12 19:30:06 +00:00
Ryan Cross
70ccb0b769
Fix issue in telechat app where ballot positions for WG actions are incorrect. Fixes #1336 . Commit ready for merge
...
- Legacy-Id: 13212
2017-04-13 00:59:36 +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
5f053ad21a
Cleaned up the remaining explicit url names, using dotted-paths to view
...
functions instead. In all almost 700 changes.
- Legacy-Id: 12923
2017-02-26 23:21:49 +00:00
Henrik Levkowetz
4cac784522
Renamed a bunch of identically named MainTestCase classes.
...
- Legacy-Id: 10913
2016-03-06 18:18:38 +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
02031a01b9
Cleaned out some (arbitrary) submodule name imports into ietf.utils, and made the corresponding import statements import the names directly from the correct submodules.
...
- Legacy-Id: 7495
2014-03-16 07:09:38 +00:00
Henrik Levkowetz
aeaf0413a6
Made ietf/secr/telechat pyflakes-clean.
...
- Legacy-Id: 7486
2014-03-15 23:24:19 +00:00
Ole Laursen
d1782297ab
assertEquals -> assertEqual in tests, the former is deprecated
...
- Legacy-Id: 6964
2013-12-17 12:52:24 +00:00
Ole Laursen
9457669310
Merge in changes from the old shimfree branch
...
- Legacy-Id: 6764
2013-11-27 12:55:50 +00:00
Ole Laursen
f6ff2a8082
Delete all old WGAction stuff, it's superceded by the WG charter
...
support, clean up iesg/models.py a bit
- Legacy-Id: 6411
2013-10-10 16:12:34 +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
Henrik Levkowetz
7e67b40a87
Merged in branch/amsl/trunkmerge@5449 from rcross@amsl.com, with some tweaks. This provides the secretariat apps.
...
- Legacy-Id: 5482
2013-03-05 22:43:31 +00:00