From bcacdf53b7054ee8bc5174e2338cc6b546d7028daf44fead896115f91ba6f55f Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 29 Sep 2022 18:55:49 +0000 Subject: [PATCH] Accepting request 1007025 from home:yarunachalam:branches:devel:languages:python - Release 1.4.0 (August 25, 2022) - @avandierast implemented `thenCallOriginalImplementation`. See #60 # Let `os.path.exists` use the real filesystem (often needed when # the testing framework needs itself a working `os.path.exists` # implementation) *but* fake a `.flake8` file. when(os.path).exists(...).thenCallOriginalImplementation() when(os.path).exists('.flake8').thenReturn(True) - Release 1.3.5 (August 18, 2022) - Restore compatibility with Python 2.7 - Release 1.3.3 (June 23, 2022) - Hotfix: Correctly unstub methods extracted to the module level, for example ``random.randint()`` et.al. from the standard library. See #53 - Release 1.3.2 (June 23, 2022) - Let `mock(spec=SomeClass)` work just as `mock(SomeClass)` - Release 1.3.1 (June 14, 2022) - Reimplement `captor` to capture only during execution phase of a test. - Release 1.3.0 (December 3, 2021) - Teach `captor` to remember all used values (@shashankrnr32). E.g. arg = captor() mock.do_something(123) mock.do_something(456) verify(mock).do_something(arg) assert arg.all_values == [123, 456] OBS-URL: https://build.opensuse.org/request/show/1007025 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mockito?expand=0&rev=19 --- 1.2.2.tar.gz | 3 --- 1.4.0.tar.gz | 3 +++ python-mockito.changes | 32 ++++++++++++++++++++++++++++++++ python-mockito.spec | 4 ++-- 4 files changed, 37 insertions(+), 5 deletions(-) delete mode 100644 1.2.2.tar.gz create mode 100644 1.4.0.tar.gz diff --git a/1.2.2.tar.gz b/1.2.2.tar.gz deleted file mode 100644 index d77c73a..0000000 --- a/1.2.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7a86349b7db05ad0d3679167c9997a658e24790b039fc0a3c07e1a7beb772213 -size 55597 diff --git a/1.4.0.tar.gz b/1.4.0.tar.gz new file mode 100644 index 0000000..a6cae3e --- /dev/null +++ b/1.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe0614d07bf0f762f9b0e7b7183788e80941950315f58dfa2d405415afc9e65a +size 58024 diff --git a/python-mockito.changes b/python-mockito.changes index 3804205..427365d 100644 --- a/python-mockito.changes +++ b/python-mockito.changes @@ -1,3 +1,35 @@ +------------------------------------------------------------------- +Thu Sep 29 16:37:08 UTC 2022 - Yogalakshmi Arunachalam + +- Release 1.4.0 (August 25, 2022) + + - @avandierast implemented `thenCallOriginalImplementation`. See #60 + # Let `os.path.exists` use the real filesystem (often needed when + # the testing framework needs itself a working `os.path.exists` + # implementation) *but* fake a `.flake8` file. + when(os.path).exists(...).thenCallOriginalImplementation() + when(os.path).exists('.flake8').thenReturn(True) + +- Release 1.3.5 (August 18, 2022) + - Restore compatibility with Python 2.7 + +- Release 1.3.3 (June 23, 2022) + - Hotfix: Correctly unstub methods extracted to the module level, for example ``random.randint()`` et.al. from the standard library. See #53 + +- Release 1.3.2 (June 23, 2022) + - Let `mock(spec=SomeClass)` work just as `mock(SomeClass)` + +- Release 1.3.1 (June 14, 2022) + - Reimplement `captor` to capture only during execution phase of a test. + +- Release 1.3.0 (December 3, 2021) + - Teach `captor` to remember all used values (@shashankrnr32). E.g. + arg = captor() + mock.do_something(123) + mock.do_something(456) + verify(mock).do_something(arg) + assert arg.all_values == [123, 456] + ------------------------------------------------------------------- Thu Apr 22 06:00:46 UTC 2021 - Steve Kowalik diff --git a/python-mockito.spec b/python-mockito.spec index 90118a6..eed7423 100644 --- a/python-mockito.spec +++ b/python-mockito.spec @@ -1,7 +1,7 @@ # # spec file for package python-mockito # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python36 1 Name: python-mockito -Version: 1.2.2 +Version: 1.4.0 Release: 0 Summary: Spying framework License: MIT