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
2cb9d984
Kaydet (Commit)
2cb9d984
authored
Ara 16, 2014
tarafından
Aymeric Augustin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge pull request #3737 from mhall1/ticket_23893
Fixed #23893: Added tzinfo to constant datetime in unit test
üst
4efe1b79
4fada6f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
AUTHORS
AUTHORS
+1
-0
tests.py
tests/custom_lookups/tests.py
+2
-1
No files found.
AUTHORS
Dosyayı görüntüle @
2cb9d984
...
...
@@ -465,6 +465,7 @@ answer newbie questions, and generally made Django that much better:
Maximillian Dornseif <md@hudora.de>
mccutchen@gmail.com
Meir Kriheli <http://mksoft.co.il/>
Michael Hall <mhall1@ualberta.ca>
Michael Josephson <http://www.sdjournal.com/>
Michael Manfre <mmanfre@gmail.com>
michael.mcewan@gmail.com
...
...
tests/custom_lookups/tests.py
Dosyayı görüntüle @
2cb9d984
...
...
@@ -8,6 +8,7 @@ from django.core.exceptions import FieldError
from
django.db
import
models
from
django.db
import
connection
from
django.test
import
TestCase
,
override_settings
from
django.utils
import
timezone
from
.models
import
Author
,
MySQLUnixTimestamp
...
...
@@ -376,7 +377,7 @@ class DateTimeLookupTests(TestCase):
models
.
PositiveIntegerField
.
register_lookup
(
DateTimeTransform
)
try
:
ut
=
MySQLUnixTimestamp
.
objects
.
create
(
timestamp
=
time
.
time
())
y2k
=
datetime
(
2000
,
1
,
1
)
y2k
=
timezone
.
make_aware
(
datetime
(
2000
,
1
,
1
)
)
self
.
assertQuerysetEqual
(
MySQLUnixTimestamp
.
objects
.
filter
(
timestamp__as_datetime__gt
=
y2k
),
[
ut
],
lambda
x
:
x
)
...
...
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