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
b5d7604c
Kaydet (Commit)
b5d7604c
authored
Eki 10, 2018
tarafından
Hasan Ramezani
Kaydeden (comit)
Tim Graham
Eki 10, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Completed FixedOffset test coverage.
üst
3957f767
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
test_timezone.py
tests/utils_tests/test_timezone.py
+11
-0
No files found.
tests/utils_tests/test_timezone.py
Dosyayı görüntüle @
b5d7604c
...
...
@@ -212,3 +212,14 @@ class TimezoneTests(SimpleTestCase):
with
self
.
assertWarnsMessage
(
RemovedInDjango31Warning
,
msg
)
as
cm
:
timezone
.
FixedOffset
()
self
.
assertEqual
(
cm
.
filename
,
__file__
)
@ignore_warnings
(
category
=
RemovedInDjango31Warning
)
def
test_fixedoffset_utcoffset
(
self
):
delta
=
datetime
.
timedelta
(
minutes
=
1
)
self
.
assertEqual
(
timezone
.
FixedOffset
(
1
)
.
utcoffset
(
None
),
delta
)
@ignore_warnings
(
category
=
RemovedInDjango31Warning
)
def
test_fixedoffset_dst
(
self
):
ZERO
=
datetime
.
timedelta
(
minutes
=
0
)
delta
=
datetime
.
timedelta
(
hours
=
0
)
self
.
assertEqual
(
timezone
.
FixedOffset
()
.
dst
(
delta
),
ZERO
)
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