Changeset 1874:050ea0503b44


Ignore:
Timestamp:
Jan 1, 2020, 3:46:28 PM (3 weeks ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
histedit_source:
a5da60616fce35a923a68eee69eb563d3999f944
Message:
Test that ticket 131 is fixed

This requires `freezegun` as a development dependency.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test_stat.py

    r1873 r1874  
    88import time
    99
     10import freezegun
    1011import pytest
    1112
     
    542543        # 2. test: Server is three hours ahead of client
    543544        self._test_time_shift(3 * 60 * 60)
     545        # Ditto, but with client and server in different years. See ticket #131.
     546        with freezegun.freeze_time("2019-12-31 22:37"):
     547            self._test_time_shift(3 * 60 * 60)
    544548        # 3. test: Client is three hours ahead of server
    545549        self._test_time_shift(-3 * 60 * 60)
Note: See TracChangeset for help on using the changeset viewer.