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
c2598a6f
Kaydet (Commit)
c2598a6f
authored
Nis 19, 2018
tarafından
Burhanuddin Baharuddin
Kaydeden (comit)
Carlton Gibson
Nis 19, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clarified wording in tutorial text.
üst
a917a560
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
tutorial05.txt
docs/intro/tutorial05.txt
+3
-4
No files found.
docs/intro/tutorial05.txt
Dosyayı görüntüle @
c2598a6f
...
@@ -188,10 +188,9 @@ Put the following in the ``tests.py`` file in the ``polls`` application:
...
@@ -188,10 +188,9 @@ Put the following in the ``tests.py`` file in the ``polls`` application:
future_question = Question(pub_date=time)
future_question = Question(pub_date=time)
self.assertIs(future_question.was_published_recently(), False)
self.assertIs(future_question.was_published_recently(), False)
What we have done here is created a :class:`django.test.TestCase` subclass
Here we have created a :class:`django.test.TestCase` subclass with a method that
with a method that creates a ``Question`` instance with a ``pub_date`` in the
creates a ``Question`` instance with a ``pub_date`` in the future. We then check
future. We then check the output of ``was_published_recently()`` - which
the output of ``was_published_recently()`` - which *ought* to be False.
*ought* to be False.
Running tests
Running tests
-------------
-------------
...
...
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