Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4:FactoryCandidates
python-django-request
set-timezone-for-day-tests.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File set-timezone-for-day-tests.patch of Package python-django-request
Index: django-request-1.6.0/tests/test_managers.py =================================================================== --- django-request-1.6.0.orig/tests/test_managers.py +++ django-request-1.6.0/tests/test_managers.py @@ -134,12 +134,14 @@ class RequestQuerySetTest(TestCase): qs = Request.objects.all().week(year='foo', week='1') self.assertIsNone(qs) + @override_settings(USE_TZ=True, TIME_ZONE='Africa/Nairobi') def test_day(self): qs = Request.objects.all().day(date=now()) self.assertEqual(1, qs.count()) qs = Request.objects.all().day(date=now() - timedelta(days=3)) self.assertEqual(0, qs.count()) + @override_settings(USE_TZ=True, TIME_ZONE='Africa/Nairobi') def test_day_without_date(self): qs = Request.objects.all().day( year=str(now().year),
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor