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
032f5a78
Kaydet (Commit)
032f5a78
authored
Şub 19, 2016
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refs #25735 -- Made @tag decorator importable from django.test.
üst
375e1cfe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
__init__.py
django/test/__init__.py
+2
-2
tools.txt
docs/topics/testing/tools.txt
+1
-1
tests_sample.py
tests/test_discovery_sample/tests_sample.py
+1
-2
No files found.
django/test/__init__.py
Dosyayı görüntüle @
032f5a78
...
...
@@ -9,14 +9,14 @@ from django.test.testcases import (
)
from
django.test.utils
import
(
ignore_warnings
,
modify_settings
,
override_settings
,
override_system_checks
,
override_system_checks
,
tag
,
)
__all__
=
[
'Client'
,
'RequestFactory'
,
'TestCase'
,
'TransactionTestCase'
,
'SimpleTestCase'
,
'LiveServerTestCase'
,
'skipIfDBFeature'
,
'skipUnlessAnyDBFeature'
,
'skipUnlessDBFeature'
,
'ignore_warnings'
,
'modify_settings'
,
'override_settings'
,
'override_system_checks'
'modify_settings'
,
'override_settings'
,
'override_system_checks'
,
'tag'
,
]
# To simplify Django's test suite; not meant as a public API
...
...
docs/topics/testing/tools.txt
Dosyayı görüntüle @
032f5a78
...
...
@@ -1632,7 +1632,7 @@ Tagging tests
You can tag your tests so you can easily run a particular subset. For example,
you might label fast or slow tests::
from django.test
.utils
import tag
from django.test import tag
class SampleTestCase(TestCase):
...
...
tests/test_discovery_sample/tests_sample.py
Dosyayı görüntüle @
032f5a78
import
doctest
from
unittest
import
TestCase
from
django.test
import
SimpleTestCase
,
TestCase
as
DjangoTestCase
from
django.test.utils
import
tag
from
django.test
import
SimpleTestCase
,
TestCase
as
DjangoTestCase
,
tag
from
.
import
doctests
...
...
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