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
24891672
Kaydet (Commit)
24891672
authored
Nis 01, 2012
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix markup errors found by "make suspicious".
üst
3f4a1b30
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
unittest.mock-examples.rst
Doc/library/unittest.mock-examples.rst
+1
-1
unittest.mock.rst
Doc/library/unittest.mock.rst
+3
-3
No files found.
Doc/library/unittest.mock-examples.rst
Dosyayı görüntüle @
24891672
...
@@ -39,7 +39,7 @@ and attributes that allow you to make assertions about how it has been used.
...
@@ -39,7 +39,7 @@ and attributes that allow you to make assertions about how it has been used.
Once the mock has been called its :attr:`~Mock.called` attribute is set to
Once the mock has been called its :attr:`~Mock.called` attribute is set to
`True`. More importantly we can use the :meth:`~Mock.assert_called_with` or
`True`. More importantly we can use the :meth:`~Mock.assert_called_with` or
:meth`~Mock.assert_called_once_with` method to check that it was called with
:meth
:
`~Mock.assert_called_once_with` method to check that it was called with
the correct arguments.
the correct arguments.
This example tests that calling `ProductionClass().method` results in a call to
This example tests that calling `ProductionClass().method` results in a call to
...
...
Doc/library/unittest.mock.rst
Dosyayı görüntüle @
24891672
...
@@ -1712,9 +1712,9 @@ call
...
@@ -1712,9 +1712,9 @@ call
.. function:: call(*args, **kwargs)
.. function:: call(*args, **kwargs)
`call` is a helper object for making simpler assertions, for comparing
`call` is a helper object for making simpler assertions, for comparing
with
with
:attr:`~Mock.call_args`, :attr:`~Mock.call_args_list`,
:attr:`~Mock.call_args`, :attr:`~Mock.call_args_list`,
:attr:`~Mock.mock_calls` and :attr:
`~Mock.method_calls`. `call` can also be
:attr:`~Mock.mock_calls` and :attr:`~Mock.method_calls`. `call` can also be
used with :meth:`~Mock.assert_has_calls`.
used with :meth:`~Mock.assert_has_calls`.
>>> m = MagicMock(return_value=None)
>>> m = MagicMock(return_value=None)
...
...
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