per page, with , order by , clip by
Results of 1 - 10 of about 62 for Mock (0.036 sec.)
unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 12513
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ ... リ ¶ Added in version 3.3. ソースコード: Lib/unittest/mock.py unittest.mock is a library for testing in Python. It allows you to replace parts of your system under test with mock ob ... jects and make assertions about how they have been used. unittest.mock provides a core Mock class removing the need to create a host of stubs throughout your test suite. After performing an act ... arguments they were called with. You can also specify return values and set needed attributes in the normal way. 加えて、 mock はテストのスコープ内にあるモジュールやクラスの属性を変更する patch() デコレータを提供します。さらに、ユニークなオブジェクト ...
https://man.mtool.work/python/3.14/library/unittest.mock.html
unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 12513
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ ... リ ¶ Added in version 3.3. ソースコード: Lib/unittest/mock.py unittest.mock is a library for testing in Python. It allows you to replace parts of your system under test with mock ob ... jects and make assertions about how they have been used. unittest.mock provides a core Mock class removing the need to create a host of stubs throughout your test suite. After performing an act ... arguments they were called with. You can also specify return values and set needed attributes in the normal way. 加えて、 mock はテストのスコープ内にあるモジュールやクラスの属性を変更する patch() デコレータを提供します。さらに、ユニークなオブジェクト ...
https://man.mtool.work/python/3.14/library/unittest.mock.html
unittest.mock --- 入門 — Python 3.14.8 ドキュメント 11949
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- 入門 テーマ 自動 ライト ダーク | unittest.mock --- 入門 ¶ Added in version 3.3. Mock を使う ¶ Mock p ... atching methods ¶ 一般的な Mock の使い方の中には次のものがあります: メソッドにパッチを当てる オブジェクトに対するメソッド呼び出しを記録する システムの他の ... うかを確認するために、そのオブジェクトのメソッドを置き換えることができます: >>> real = SomeClass () >>> real . method = MagicMock ( name = 'method' ) >>> real . method ( 3 , 4 , 5 , key = 'value' ) <MagicMock name='method()' id='...'> モック(上の例では ... 利用された場合、どう使われたかを assert できるようにする属性やメソッドがモックにあります。 注釈 この例のような場合、たいてい Mock と MagicMock は互換です。 MagicMock の方が強力なので、デフォルトではこちらを使うといいでしょう。 モックが呼び出されると、そ ...
https://man.mtool.work/python/3.14/library/unittest.mock-examples.html
unittest.mock --- 入門 — Python 3.14.8 ドキュメント 11949
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- 入門 テーマ 自動 ライト ダーク | unittest.mock --- 入門 ¶ Added in version 3.3. Mock を使う ¶ Mock p ... atching methods ¶ 一般的な Mock の使い方の中には次のものがあります: メソッドにパッチを当てる オブジェクトに対するメソッド呼び出しを記録する システムの他の ... うかを確認するために、そのオブジェクトのメソッドを置き換えることができます: >>> real = SomeClass () >>> real . method = MagicMock ( name = 'method' ) >>> real . method ( 3 , 4 , 5 , key = 'value' ) <MagicMock name='method()' id='...'> モック(上の例では ... 利用された場合、どう使われたかを assert できるようにする属性やメソッドがモックにあります。 注釈 この例のような場合、たいてい Mock と MagicMock は互換です。 MagicMock の方が強力なので、デフォルトではこちらを使うといいでしょう。 モックが呼び出されると、そ ...
https://man.mtool.work/python/3.14/library/unittest.mock-examples.html
索引 — Python 3.14.8 ドキュメント 8684
ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – A A (re モジュール) a2b_base64() (binascii モジュール) a2b_hex() (binascii モジュール) a2b_qp() (binascii モジュール) a2b_uu() (binasc ... ultiprocessing.connection モジュール) anticipate_failure() (test.support モジュール) Any (typing モジュール) ANY (unittest.mock モジュール) any() built-in function ANY_CONTIGUOUS (inspect.BufferFlags の属性) AnyStr (typing モジュール) api_version (sy ... box モジュール) aspect() (tkinter.Wm のメソッド) assert statement , [1] Assert (ast のクラス) assert_any_await() (unittest.mock.AsyncMock のメソッド) assert_any_call() (unittest.mock.Mock のメソッド) assert_awaited() (unittest.mock.AsyncMock のメソッ ... ド) assert_awaited_once() (unittest.mock.AsyncMock のメソッド) assert_awaited_once_with() (unittest.mock.AsyncMock のメソッド) assert_awaited_with() (unittest.mock ...
https://man.mtool.work/python/3.14/genindex-A.html
索引 — Python 3.14.8 ドキュメント 8684
ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – A A (re モジュール) a2b_base64() (binascii モジュール) a2b_hex() (binascii モジュール) a2b_qp() (binascii モジュール) a2b_uu() (binasc ... ultiprocessing.connection モジュール) anticipate_failure() (test.support モジュール) Any (typing モジュール) ANY (unittest.mock モジュール) any() built-in function ANY_CONTIGUOUS (inspect.BufferFlags の属性) AnyStr (typing モジュール) api_version (sy ... box モジュール) aspect() (tkinter.Wm のメソッド) assert statement , [1] Assert (ast のクラス) assert_any_await() (unittest.mock.AsyncMock のメソッド) assert_any_call() (unittest.mock.Mock のメソッド) assert_awaited() (unittest.mock.AsyncMock のメソッ ... ド) assert_awaited_once() (unittest.mock.AsyncMock のメソッド) assert_awaited_once_with() (unittest.mock.AsyncMock のメソッド) assert_awaited_with() (unittest.mock ...
https://man.mtool.work/python/3.14/genindex-A.html
開発ツール — Python 3.14.8 ドキュメント 8395
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール テーマ 自動 ライト ダーク | 開発ツール ¶ この章で紹介されるモジュールはソフトウェアを書くことを支援します。たとえば、 py ... ル クラスとモジュールのフィクスチャ setUpClass と tearDownClass setUpModule と tearDownModule シグナルハンドリング unittest.mock --- モックオブジェクトライブラリ クイックガイド Mock クラス 呼び出し 属性の削除 Mock の名前と name 属性 属性として設定され ... をパッチする TEST_PREFIX patch デコレータをネストする どこにパッチするか デスクリプタやプロキシオブジェクトにパッチする MagicMock と magic method のサポート Magic Method をモックする Magic Mock ヘルパー sentinel DEFAULT call create_autospec ANY FILTER_ ... DIR mock_open autospec を使う Sealing mocks Order of precedence of side_effect , return_value and wraps unittest.mock --- 入門 Mock ...
https://man.mtool.work/python/3.14/library/development.html
開発ツール — Python 3.14.8 ドキュメント 8395
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール テーマ 自動 ライト ダーク | 開発ツール ¶ この章で紹介されるモジュールはソフトウェアを書くことを支援します。たとえば、 py ... ル クラスとモジュールのフィクスチャ setUpClass と tearDownClass setUpModule と tearDownModule シグナルハンドリング unittest.mock --- モックオブジェクトライブラリ クイックガイド Mock クラス 呼び出し 属性の削除 Mock の名前と name 属性 属性として設定され ... をパッチする TEST_PREFIX patch デコレータをネストする どこにパッチするか デスクリプタやプロキシオブジェクトにパッチする MagicMock と magic method のサポート Magic Method をモックする Magic Mock ヘルパー sentinel DEFAULT call create_autospec ANY FILTER_ ... DIR mock_open autospec を使う Sealing mocks Order of precedence of side_effect , return_value and wraps unittest.mock --- 入門 Mock ...
https://man.mtool.work/python/3.14/library/development.html
変更履歴 — Python 3.14.8 ドキュメント 8192
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac ... rint_call_graph() no longer truncates the call stack at a synchronous generator. gh-156970 : Set the docstring of unittest.mock.Mock.return_value . gh-156946 : Fix a crash in curses.panel when the finalizer of a panel's user pointer runs while the pa ... _forward_ref() with the STRING format could leak internal names used by the annotation machinery. gh-150484 : Fix unittest.mock.mock_open() __exit__ raising TypeError when used with contextlib.ExitStack . gh-149816 : Fix a potential use after free co ... ithout a __module__ attribute while sys.modules is concurrently being modified. gh-150175 : Fix race condition in unittest.mock.ThreadingMock where concurrent calls could lose increments to call_count and other attributes due to a missing lock in _in ...
https://man.mtool.work/python/3.14/whatsnew/changelog.html
索引 — Python 3.14.8 ドキュメント 8192
ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | 索引 記号 | _ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | イ | エ | オ | カ | キ ... ction のメソッド) (object のメソッド) __class__ (method cell) (module attribute) (module の属性) (object の属性) (unittest.mock.Mock の属性) (インスタンス属性) __class_getitem__() (object のクラスメソッド) __classcell__ (class namespace entry) __clos ... e attribute) __dir__() (enum.Enum のメソッド) (enum.EnumType のメソッド) (module のメソッド) (object のメソッド) (unittest.mock.Mock のメソッド) __displayhook__ (sys モジュール) __divmod__() (object のメソッド) __doc__ (definition の属性) (function の ... ) _for_archive() (zipfile.ZipInfo のメソッド) _frozen (C struct) _generate_next_value_() (enum.Enum のメソッド) _get_child_mock() (unittest.mock.Mock のメソッド) _get_preferred_schemes() (sysconfig モジュール) _getframe() (sys モジュール) _getframemo ...
https://man.mtool.work/python/3.14/genindex-all.html
PREV 1 2 3 4 5 6 7 NEXT