py$(PYV): commands[0]> python -m pytest tests ============================= test session starts ============================== platform sunos5 -- Python $(PYTHON_VERSION).X -- $(@D)/.tox/py$(PYV)/bin/python cachedir: .tox/py$(PYV)/.pytest_cache rootdir: $(@D) configfile: tox.ini asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function collecting ... collected 168 items tests/test_pytest_mock.py::TestPatch::test_patches[mock_using_patch_object] PASSED tests/test_pytest_mock.py::TestPatch::test_patches[mock_using_patch] PASSED tests/test_pytest_mock.py::TestPatch::test_patches[mock_using_patch_multiple] PASSED tests/test_pytest_mock.py::TestPatch::test_dict PASSED tests/test_pytest_mock.py::TestPatch::test_method_parameter_name PASSED tests/test_pytest_mock.py::TestMockerAttributes::test_aliases[ANY] PASSED tests/test_pytest_mock.py::TestMockerAttributes::test_aliases[call] PASSED tests/test_pytest_mock.py::TestMockerAttributes::test_aliases[MagicMock] PASSED tests/test_pytest_mock.py::TestMockerAttributes::test_aliases[Mock] PASSED tests/test_pytest_mock.py::TestMockerAttributes::test_aliases[mock_open] PASSED tests/test_pytest_mock.py::TestMockerAttributes::test_aliases[NonCallableMagicMock] PASSED tests/test_pytest_mock.py::TestMockerAttributes::test_aliases[NonCallableMock] PASSED tests/test_pytest_mock.py::TestMockerAttributes::test_aliases[PropertyMock] PASSED tests/test_pytest_mock.py::TestMockerAttributes::test_aliases[sentinel] PASSED tests/test_pytest_mock.py::TestMockerAttributes::test_aliases[seal] PASSED tests/test_pytest_mock.py::TestResetAll::test_patch_multiple[False-False] PASSED tests/test_pytest_mock.py::TestResetAll::test_patch_multiple[False-True] PASSED tests/test_pytest_mock.py::TestResetAll::test_patch_multiple[True-False] PASSED tests/test_pytest_mock.py::TestResetAll::test_patch_multiple[True-True] PASSED tests/test_pytest_mock.py::TestResetAll::test_patch_multiple_autospec PASSED tests/test_pytest_mock.py::TestResetAll::test_patch_multiple_explicit_values PASSED tests/test_pytest_mock.py::TestResetAll::test_patch_multiple_non_mock_values PASSED tests/test_pytest_mock.py::TestResetAll::test_patch_multiple_new_callable PASSED tests/test_pytest_mock.py::TestResetAll::test_basic PASSED tests/test_pytest_mock.py::TestResetAll::test_non_callable_mock PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[function-False-False] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[function-False-True] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[function-True-False] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[function-True-True] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[instance_method-False-False] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[instance_method-False-True] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[instance_method-True-False] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[instance_method-True-True] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[method_on_class-False-False] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[method_on_class-False-True] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[method_on_class-True-False] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[method_on_class-True-True] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[classmethod-False-False] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[classmethod-False-True] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[classmethod-True-False] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[classmethod-True-True] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[staticmethod-False-False] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[staticmethod-False-True] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[staticmethod-True-False] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[staticmethod-True-True] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[builtin-False-False] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[builtin-False-True] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[builtin-True-False] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[builtin-True-True] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[class-False-False] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[class-False-True] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[class-True-False] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_keeps_calling_through[class-True-True] PASSED tests/test_pytest_mock.py::TestResetAll::test_async_spy_keeps_calling_through[False-False] PASSED tests/test_pytest_mock.py::TestResetAll::test_async_spy_keeps_calling_through[False-True] PASSED tests/test_pytest_mock.py::TestResetAll::test_async_spy_keeps_calling_through[True-False] PASSED tests/test_pytest_mock.py::TestResetAll::test_async_spy_keeps_calling_through[True-True] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_side_effect_override[instance_method] PASSED tests/test_pytest_mock.py::TestResetAll::test_spy_side_effect_override[classmethod] PASSED tests/test_pytest_mock.py::TestResetAll::test_mock_spy_attributes PASSED tests/test_pytest_mock.py::TestResetAll::test_patch_dict PASSED tests/test_pytest_mock.py::TestResetAll::test_patch_dict_does_not_reset_values PASSED tests/test_pytest_mock.py::TestMockerStub::test_call PASSED tests/test_pytest_mock.py::TestMockerStub::test_repr_with_no_name PASSED tests/test_pytest_mock.py::TestMockerStub::test_repr_with_name PASSED tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_no_name PASSED tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[None] PASSED tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[] PASSED tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[f] PASSED tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[The Castle of aaarrrrggh] PASSED tests/test_pytest_mock.py::TestMockerStub::test_async_stub_type PASSED tests/test_pytest_mock.py::TestSpy::test_instance_method PASSED tests/test_pytest_mock.py::TestSpy::test_type PASSED tests/test_pytest_mock.py::TestSpy::test_instance_method_exception[BaseException] PASSED tests/test_pytest_mock.py::TestSpy::test_instance_method_exception[Exception] PASSED tests/test_pytest_mock.py::TestSpy::test_instance_method_exception[GeneratorExit] PASSED tests/test_pytest_mock.py::TestSpy::test_instance_method_exception[KeyboardInterrupt] PASSED tests/test_pytest_mock.py::TestSpy::test_instance_method_exception[RuntimeError] PASSED tests/test_pytest_mock.py::TestSpy::test_instance_method_exception[SystemExit] PASSED tests/test_pytest_mock.py::TestSpy::test_instance_class_static_method_autospec_true PASSED tests/test_pytest_mock.py::TestSpy::test_reset PASSED tests/test_pytest_mock.py::TestSpy::test_reset_async PASSED tests/test_pytest_mock.py::TestSpy::test_callable_like PASSED tests/test_pytest_mock.py::TestSpy::test_instance_async_method PASSED tests/test_pytest_mock.py::TestSpy::TestOnClass::test_instance_method PASSED tests/test_pytest_mock.py::TestSpy::TestOnClass::test_instance_method_subclass PASSED tests/test_pytest_mock.py::TestSpy::TestOnClass::test_class_method PASSED tests/test_pytest_mock.py::TestSpy::TestOnClass::test_class_method_subclass PASSED tests/test_pytest_mock.py::TestSpy::TestOnClass::test_class_method_with_metaclass PASSED tests/test_pytest_mock.py::TestSpy::TestOnClass::test_static_method PASSED tests/test_pytest_mock.py::TestSpy::TestOnClass::test_static_method_subclass PASSED tests/test_pytest_mock.py::TestSpyReturnIter::test_duplicates_iterator_when_enabled[] PASSED tests/test_pytest_mock.py::TestSpyReturnIter::test_duplicates_iterator_when_enabled[iterator1] PASSED tests/test_pytest_mock.py::TestSpyReturnIter::test_is_not_set_when_disabled[] PASSED tests/test_pytest_mock.py::TestSpyReturnIter::test_is_not_set_when_disabled[iterator1] PASSED tests/test_pytest_mock.py::TestSpyReturnIter::test_ignores_plain_iterable[iterable0] PASSED tests/test_pytest_mock.py::TestSpyReturnIter::test_ignores_plain_iterable[iterable1] PASSED tests/test_pytest_mock.py::TestSpyReturnIter::test_ignores_plain_iterable[iterable2] PASSED tests/test_pytest_mock.py::TestSpyReturnIter::test_resets PASSED tests/test_pytest_mock.py::TestSpyReturnIter::test_async_duplicates_iterator_when_enabled PASSED tests/test_pytest_mock.py::TestSpyReturnIter::test_clears_iterator_on_exception PASSED tests/test_pytest_mock.py::TestSpyReturnIter::test_async_clears_iterator_on_exception PASSED tests/test_pytest_mock.py::TestAssertWrappers::test_not_called PASSED tests/test_pytest_mock.py::TestAssertWrappers::test_called_with PASSED tests/test_pytest_mock.py::TestAssertWrappers::test_called_once_with PASSED tests/test_pytest_mock.py::TestAssertWrappers::test_called_once PASSED tests/test_pytest_mock.py::TestAssertWrappers::test_called PASSED tests/test_pytest_mock.py::TestAssertWrappers::test_any_call PASSED tests/test_pytest_mock.py::TestAssertWrappers::test_called_with_unicode_arguments PASSED tests/test_pytest_mock.py::TestAssertWrappers::test_missing_introspection PASSED tests/test_pytest_mock.py::TestAssertWrappers::test_no_chained_tracebacks[stub.assert_called_with(2)] PASSED tests/test_pytest_mock.py::TestAssertWrappers::test_no_chained_tracebacks[stub.assert_called_once_with(2)] PASSED tests/test_pytest_mock.py::TestAssertWrappers::test_no_chained_tracebacks[stub.assert_not_called()] PASSED tests/test_pytest_mock.py::TestAssertWrappers::test_no_chained_tracebacks[stub.assert_has_calls([mocker.call(2)])] PASSED tests/test_pytest_mock.py::TestAssertWrappers::test_no_introspection_without_assert_rewrite PASSED tests/test_pytest_mock.py::TestAssertHasCalls::test_basic PASSED tests/test_pytest_mock.py::TestAssertHasCalls::test_multiple_calls PASSED tests/test_pytest_mock.py::TestAssertHasCalls::test_multiple_calls_subset PASSED tests/test_pytest_mock.py::TestAssertHasCalls::test_multiple_calls_any_order PASSED tests/test_pytest_mock.py::TestAssertHasCalls::test_multiple_calls_any_order_subset PASSED tests/test_pytest_mock.py::TestAssertHasCalls::test_no_calls PASSED tests/test_pytest_mock.py::TestAssertHasCalls::test_no_introspection[args-kwargs] PASSED tests/test_pytest_mock.py::TestAssertHasCalls::test_no_introspection[args-only] PASSED tests/test_pytest_mock.py::TestAssertHasCalls::test_no_introspection[kwargs-only] PASSED tests/test_pytest_mock.py::TestAssertHasCalls::test_no_introspection[name-args] PASSED tests/test_pytest_mock.py::TestAssertHasCalls::test_no_introspection[name-kwargs] PASSED tests/test_pytest_mock.py::TestAssertHasCalls::test_no_introspection[call] PASSED tests/test_pytest_mock.py::TestAssertHasCalls::test_arguments_by_keyword PASSED tests/test_pytest_mock.py::TestAsyncAssertions::test_uses_await_arguments[assert_awaited_with] SKIPPED tests/test_pytest_mock.py::TestAsyncAssertions::test_uses_await_arguments[assert_awaited_once_with] SKIPPED tests/test_pytest_mock.py::TestAsyncAssertions::test_has_awaits SKIPPED tests/test_pytest_mock.py::TestAsyncAssertions::test_without_await SKIPPED tests/test_pytest_mock.py::TestIntrospection::test_called_args SKIPPED tests/test_pytest_mock.py::TestIntrospection::test_called_kwargs SKIPPED tests/test_pytest_mock.py::TestIntrospection::test_no_single_expected_call[assert_called_once()] SKIPPED tests/test_pytest_mock.py::TestIntrospection::test_no_single_expected_call[assert_not_called()] SKIPPED tests/test_pytest_mock.py::TestIntrospection::test_no_single_expected_call[assert_any_call(3)] SKIPPED tests/test_pytest_mock.py::TestIntrospection::test_no_single_expected_call[assert_called_once_with(3)] SKIPPED tests/test_pytest_mock.py::TestIntrospection::test_no_single_expected_await[assert_awaited_once()] SKIPPED tests/test_pytest_mock.py::TestIntrospection::test_no_single_expected_await[assert_not_awaited()] SKIPPED tests/test_pytest_mock.py::TestIntrospection::test_no_single_expected_await[assert_any_await(3)] SKIPPED tests/test_pytest_mock.py::TestIntrospection::test_no_single_expected_await[assert_awaited_once_with(3)] SKIPPED tests/test_pytest_mock.py::TestIntrospection::test_autospec_binds_arguments SKIPPED tests/test_pytest_mock.py::TestIntrospection::test_detailed SKIPPED tests/test_pytest_mock.py::TestIntrospection::test_detailed_async SKIPPED tests/test_pytest_mock.py::TestConfiguration::test_monkeypatch_ini PASSED tests/test_pytest_mock.py::TestConfiguration::test_parse_ini_boolean PASSED tests/test_pytest_mock.py::TestConfiguration::test_monkeypatch_native PASSED tests/test_pytest_mock.py::TestConfiguration::test_monkeypatch_no_terminal PASSED tests/test_pytest_mock.py::TestConfiguration::test_standalone_mock PASSED tests/test_pytest_mock.py::TestStop::test_autospec_identity[None] PASSED tests/test_pytest_mock.py::TestStop::test_autospec_identity[eq_side_effect1] PASSED tests/test_pytest_mock.py::TestStop::test_plain_stopall PASSED tests/test_pytest_mock.py::TestStop::test_patch PASSED tests/test_pytest_mock.py::TestStop::test_instance_patch PASSED tests/test_pytest_mock.py::TestStop::test_spy PASSED tests/test_pytest_mock.py::TestStop::test_instance_spy PASSED tests/test_pytest_mock.py::TestStop::test_multiple_patches PASSED tests/test_pytest_mock.py::TestStop::test_same_object_patched_twice PASSED tests/test_pytest_mock.py::TestContextManagerWarnings::test_patch_object PASSED tests/test_pytest_mock.py::TestContextManagerWarnings::test_patch PASSED tests/test_pytest_mock.py::TestContextManagerWarnings::test_patching_a_context_manager PASSED tests/test_pytest_mock.py::TestContextManagerWarnings::test_patch_context_manager PASSED tests/test_pytest_mock.py::TestContextManagerWarnings::test_stale_pyc PASSED tests/test_pytest_mock.py::TestFixtureScopes::test_class PASSED tests/test_pytest_mock.py::TestFixtureScopes::test_scope[module] PASSED tests/test_pytest_mock.py::TestFixtureScopes::test_scope[package] PASSED tests/test_pytest_mock.py::TestFixtureScopes::test_scope[session] PASSED =============================== warnings summary =============================== tests/test_pytest_mock.py::TestAssertWrappers::test_missing_introspection tests/test_pytest_mock.py::TestAssertWrappers::test_no_chained_tracebacks[stub.assert_called_with(2)] tests/test_pytest_mock.py::TestAssertWrappers::test_no_chained_tracebacks[stub.assert_called_once_with(2)] tests/test_pytest_mock.py::TestAssertWrappers::test_no_chained_tracebacks[stub.assert_not_called()] tests/test_pytest_mock.py::TestAssertWrappers::test_no_chained_tracebacks[stub.assert_has_calls([mocker.call(2)])] tests/test_pytest_mock.py::TestContextManagerWarnings::test_stale_pyc tests/test_pytest_mock.py::TestContextManagerWarnings::test_stale_pyc $(PYTHON_DIR)/vendor-packages/pytest_asyncio/plugin.py:299: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset. The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session" warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET)) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ ======== 151 passed, 17 skipped, 7 warnings ======== py$(PYV): OK congratulations :)