Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
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
cpython
Commits
e02f6c20
Kaydet (Commit)
e02f6c20
authored
Tem 22, 2015
tarafından
Robert Collins
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #22153: Improve unittest docs. Patch from Martin Panter and evilzero.
üst
689b55c1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
unittest.rst
Doc/library/unittest.rst
+8
-4
ACKS
Misc/ACKS
+1
-0
NEWS
Misc/NEWS
+2
-0
No files found.
Doc/library/unittest.rst
Dosyayı görüntüle @
e02f6c20
...
...
@@ -644,10 +644,8 @@ Test cases
kinds of failure.
Each instance of :class:`TestCase` will run a single base method: the method
named *methodName*. However, the standard implementation of the default
*methodName*, ``runTest()``, will run every method starting with ``test``
as an individual test, and count successes and failures accordingly.
Therefore, in most uses of :class:`TestCase`, you will neither change
named *methodName*.
In most uses of :class:`TestCase`, you will neither change
the *methodName* nor reimplement the default ``runTest()`` method.
.. versionchanged:: 3.2
...
...
@@ -1551,6 +1549,12 @@ Loading and running tests
Return a suite of all tests cases contained in the :class:`TestCase`\ -derived
:class:`testCaseClass`.
A test case instance is created for each method named by
:meth:`getTestCaseNames`. By default these are the method names
beginning with ``test``. If :meth:`getTestCaseNames` returns no
methods, but the :meth:`runTest` method is implemented, a single test
case is created for that method instead.
.. method:: loadTestsFromModule(module)
...
...
Misc/ACKS
Dosyayı görüntüle @
e02f6c20
...
...
@@ -1535,3 +1535,4 @@ Doug Zongker
Peter Åstrand
Laurent De Buyst
Nicola Palumbo
evilzero
Misc/NEWS
Dosyayı görüntüle @
e02f6c20
...
...
@@ -66,6 +66,8 @@ Core and Builtins
Library
-------
-
Issue
#
22153
:
Improve
unittest
docs
.
Patch
from
Martin
Panter
and
evilzero
.
-
Issue
#
24206
:
Fixed
__eq__
and
__ne__
methods
of
inspect
classes
.
-
Issue
#
21750
:
mock_open
.
read_data
can
now
be
read
from
each
instance
,
as
it
...
...
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