fix letters being put in the wrong bucket when near midnight cut-off

another day, another timezone bug
This commit is contained in:
Leo Hemsted
2018-07-02 14:16:40 +01:00
parent 69c01ce8a0
commit cb7f5a7166
2 changed files with 11 additions and 3 deletions

View File

@@ -209,6 +209,14 @@ def test_move_failed_pdf_scan_failed(notify_api):
("2018-07-02 16:31:00", "2018-07-03/"),
("2018-01-02 16:31:00", "2018-01-02/"),
("2018-01-02 17:31:00", "2018-01-03/"),
("2018-07-02 22:30:00", "2018-07-03/"),
("2018-07-02 23:30:00", "2018-07-03/"),
("2018-07-03 00:30:00", "2018-07-03/"),
("2018-01-02 22:30:00", "2018-01-03/"),
("2018-01-02 23:30:00", "2018-01-03/"),
("2018-01-03 00:30:00", "2018-01-03/"),
])
def test_get_folder_name_in_british_summer_time(notify_api, freeze_date, expected_folder_name):
with freeze_time(freeze_date):