Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
f4ef71c6
Kaydet (Commit)
f4ef71c6
authored
Haz 28, 2018
tarafından
Carlton Gibson
Kaydeden (comit)
Tim Graham
Haz 28, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refs #29514 -- Added test for get_default_timezone()/timezone.utc equality.
üst
2ec151e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
test_timezone.py
tests/utils_tests/test_timezone.py
+4
-0
No files found.
tests/utils_tests/test_timezone.py
Dosyayı görüntüle @
f4ef71c6
...
...
@@ -190,6 +190,10 @@ class TimezoneTests(SimpleTestCase):
def
test_get_default_timezone
(
self
):
self
.
assertEqual
(
timezone
.
get_default_timezone_name
(),
'America/Chicago'
)
def
test_get_default_timezone_utc
(
self
):
with
override_settings
(
USE_TZ
=
True
,
TIME_ZONE
=
'UTC'
):
self
.
assertIs
(
timezone
.
get_default_timezone
(),
timezone
.
utc
)
def
test_fixedoffset_timedelta
(
self
):
delta
=
datetime
.
timedelta
(
hours
=
1
)
self
.
assertEqual
(
timezone
.
get_fixed_timezone
(
delta
)
.
utcoffset
(
''
),
delta
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment