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
39573a11
Kaydet (Commit)
39573a11
authored
Mar 15, 2015
tarafından
HerHde
Kaydeden (comit)
Tim Graham
Mar 16, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added missing punctuation in some comments in tutorial 5.
üst
4f494ed0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tutorial05.txt
docs/intro/tutorial05.txt
+4
-4
No files found.
docs/intro/tutorial05.txt
Dosyayı görüntüle @
39573a11
...
...
@@ -178,7 +178,7 @@ Put the following in the ``tests.py`` file in the ``polls`` application:
def test_was_published_recently_with_future_question(self):
"""
was_published_recently() should return False for questions whose
pub_date is in the future
pub_date is in the future
.
"""
time = timezone.now() + datetime.timedelta(days=30)
future_question = Question(pub_date=time)
...
...
@@ -283,7 +283,7 @@ more comprehensively:
def test_was_published_recently_with_old_question(self):
"""
was_published_recently() should return False for questions whose
pub_date is older than 1 day
pub_date is older than 1 day
.
"""
time = timezone.now() - datetime.timedelta(days=30)
old_question = Question(pub_date=time)
...
...
@@ -292,7 +292,7 @@ more comprehensively:
def test_was_published_recently_with_recent_question(self):
"""
was_published_recently() should return True for questions whose
pub_date is within the last day
pub_date is within the last day
.
"""
time = timezone.now() - datetime.timedelta(hours=1)
recent_question = Question(pub_date=time)
...
...
@@ -484,7 +484,7 @@ class:
def test_index_view_with_a_past_question(self):
"""
Questions with a pub_date in the past should be displayed on the
index page
index page
.
"""
create_question(question_text="Past question.", days=-30)
response = self.client.get(reverse('polls:index'))
...
...
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