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
53e89ce2
Kaydet (Commit)
53e89ce2
authored
Eyl 24, 2015
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #25451 -- Added advice about organizing tests.
üst
7372cdeb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
advanced.txt
docs/topics/testing/advanced.txt
+1
-0
overview.txt
docs/topics/testing/overview.txt
+11
-1
No files found.
docs/topics/testing/advanced.txt
Dosyayı görüntüle @
53e89ce2
...
...
@@ -248,6 +248,7 @@ Advanced features of ``TransactionTestCase``
Using ``reset_sequences = True`` will slow down the test, since the primary
key reset is an relatively expensive database operation.
.. _testing-reusable-applications:
Using the Django test runner to test reusable applications
==========================================================
...
...
docs/topics/testing/overview.txt
Dosyayı görüntüle @
53e89ce2
...
...
@@ -46,6 +46,17 @@ automatically build a test suite out of those test cases, and run that suite.
For more details about :mod:`unittest`, see the Python documentation.
.. admonition:: Where should the tests live?
The default :djadmin:`startapp` template creates a ``tests.py`` file in the
new application. This might be fine if you only have a few tests, but as
your test suite grows you'll likely want to restructure it into a tests
package so you can split your tests into different submodules such as
``test_models.py``, ``test_views.py``, ``test_forms.py``, etc. Feel free to
pick whatever organizational scheme you like.
See also :ref:`testing-reusable-applications`.
.. warning::
If your tests rely on database access such as creating or querying models,
...
...
@@ -60,7 +71,6 @@ For more details about :mod:`unittest`, see the Python documentation.
.. _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