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
a17fe73d
Kaydet (Commit)
a17fe73d
authored
Kas 11, 2016
tarafından
Mads Jensen
Kaydeden (comit)
Tim Graham
Kas 11, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed an unused function argument in db_functions test.
üst
48f45431
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
test_datetime.py
tests/db_functions/test_datetime.py
+3
-3
No files found.
tests/db_functions/test_datetime.py
Dosyayı görüntüle @
a17fe73d
...
...
@@ -801,7 +801,7 @@ class DateFunctionWithTimeZoneTests(DateFunctionTests):
melb
=
pytz
.
timezone
(
'Australia/Melbourne'
)
def
test_datetime_kind
(
kind
,
tzinfo
=
melb
):
def
test_datetime_kind
(
kind
):
self
.
assertQuerysetEqual
(
DTModel
.
objects
.
annotate
(
truncated
=
Trunc
(
'start_datetime'
,
kind
,
output_field
=
DateTimeField
(),
tzinfo
=
melb
)
...
...
@@ -813,7 +813,7 @@ class DateFunctionWithTimeZoneTests(DateFunctionTests):
lambda
m
:
(
m
.
start_datetime
,
m
.
truncated
)
)
def
test_date_kind
(
kind
,
tzinfo
=
melb
):
def
test_date_kind
(
kind
):
self
.
assertQuerysetEqual
(
DTModel
.
objects
.
annotate
(
truncated
=
Trunc
(
'start_date'
,
kind
,
output_field
=
DateField
(),
tzinfo
=
melb
)
...
...
@@ -825,7 +825,7 @@ class DateFunctionWithTimeZoneTests(DateFunctionTests):
lambda
m
:
(
m
.
start_datetime
,
m
.
truncated
)
)
def
test_time_kind
(
kind
,
tzinfo
=
melb
):
def
test_time_kind
(
kind
):
self
.
assertQuerysetEqual
(
DTModel
.
objects
.
annotate
(
truncated
=
Trunc
(
'start_time'
,
kind
,
output_field
=
TimeField
(),
tzinfo
=
melb
)
...
...
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