1
0
forked from pool/python-mocket

Compare commits

..

98 Commits

Author SHA256 Message Date
Ana Guerrero
f2224cc74f Accepting request 1217426 from devel:languages:python
- update to 3.13.2:
  * Test the plugin for `pook` separately
  * Refactoring FakeSSLContext
  * Increasing readability of Mocket core
  * `aiohttp` reuses SSLContext instances created at import-time
- update to 3.13.1:
  * No need to keep multiple dirs for tests
  * Back to testing `doctest`
  * Pinning the version of `aiohttp`
  * Test with the official stable Python 3.13
  * Switching to using `puremagic` for identifying MIME types

OBS-URL: https://build.opensuse.org/request/show/1217426
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=38
2024-10-25 17:18:37 +00:00
1bd8d66c00 - update to 3.13.2:
* Test the plugin for `pook` separately
  * Refactoring FakeSSLContext
  * Increasing readability of Mocket core
  * `aiohttp` reuses SSLContext instances created at import-time
- update to 3.13.1:
  * No need to keep multiple dirs for tests
  * Back to testing `doctest`
  * Pinning the version of `aiohttp`
  * Test with the official stable Python 3.13
  * Switching to using `puremagic` for identifying MIME types

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=91
2024-10-23 20:19:51 +00:00
Ana Guerrero
9d6f755af3 Accepting request 1204917 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1204917
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=37
2024-10-01 15:11:08 +00:00
Sebastian Wagner
9de1218980 - Skip test failing with new aiohttp
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=89
2024-10-01 11:37:23 +00:00
Sebastian Wagner
da0875b576 - update to version 3.13.0:
- Adding Python 3.13 support by @mindflayer in #242

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=88
2024-09-26 08:26:24 +00:00
Ana Guerrero
384471d22f Accepting request 1199816 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1199816
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=36
2024-09-10 19:12:50 +00:00
Ana Guerrero
f1c53706ce Accepting request 1179958 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1179958
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=35
2024-06-12 13:37:27 +00:00
830f6925f8 - update to 3.12.8:
* Fix regression
  * Begin mypy type-checking
  * Make Mocket work with big requests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=83
2024-06-04 08:17:27 +00:00
Ana Guerrero
84a934f561 Accepting request 1172444 from devel:languages:python
- Update to version 3.12.6:
 - Strict mode check should accept a location as str by @mindflayer in #230
- Update to version 3.12.5:
 - Add getblocking() method by @mindflayer in #228

OBS-URL: https://build.opensuse.org/request/show/1172444
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=34
2024-05-13 15:56:56 +00:00
Sebastian Wagner
df23b67b1c - Update to version 3.12.6:
- Strict mode check should accept a location as str by @mindflayer in #230
- Update to version 3.12.5:
 - Add getblocking() method by @mindflayer in #228

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=81
2024-05-05 13:26:07 +00:00
Ana Guerrero
bfb4010b88 Accepting request 1144614 from devel:languages:python
- Update to version 3.12.4:
 * When creating true socket connection, use host and port stored in instance variables, not in the Mocket class's variable by @ento in #222
 * Switching to Compose v2 by @mindflayer in #223
 * Add allowed locations (whitelist) for STRICT mode by @mindflayer (refactoring of #214 from @ento) in #224

OBS-URL: https://build.opensuse.org/request/show/1144614
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=33
2024-02-07 17:47:31 +00:00
Sebastian Wagner
26ab15dcf4 - Update to version 3.12.4:
* When creating true socket connection, use host and port stored in instance variables, not in the Mocket class's variable by @ento in #222
 * Switching to Compose v2 by @mindflayer in #223
 * Add allowed locations (whitelist) for STRICT mode by @mindflayer (refactoring of #214 from @ento) in #224

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=79
2024-02-06 12:24:03 +00:00
Ana Guerrero
3fc1a19097 Accepting request 1140590 from devel:languages:python
- add pytest-asyncio and psutil to test build requirements
- skip test_truesendall_with_dump_from_recording and test_no_dangling_fds as they require internet connection
- update to 3.12.3:
  * Fixes for allowing making a mixture of unmocked and mocked
    HTTPS requests using aiohttp
  * Merging external contribution
  * Adding testcase for proving #209 was fixed
- update to 3.12.2:
  * Pook is now compatible with modern Python versions
  * Excluding venvs from dist packages
- Fix check that was testing the version package of python3-httpx.
  That's not available in SLE so we now use python311-httpx
  instead which allows the package to build fine in SLE's Python
  3.11 stack.
- Add %{?sle15_python_module_pythons}
- Update to version 3.12.0:
 * Support for Python 3.12 (#204)
 * Fix for Python 3.12
 * Getting rid of Python 3.7, since it's not supported anymore.
 * Precommit hooks' autoupdate.
 * Disabling `aiohttp` for testing Python 3.12.
- Run redis server on %check to fix redis tests that depends on a real
  redis server running.
- Update to 3.11.1
  * Fix for `urllib2>=2`
  * Bump version for publishing a new release
  * Adding local container for partially replacing httpbin.org usage
  * Replacing httpbin.org with mockbin.org from Kong for what needs HTTPS
- Update to version 3.11:
 - Migrating the HTTP[S] mock from relying on http-parser to httptools.
 - Never discovered the root cause for the failing tests with aiohttp/Python 3.11 (first time ever I added @pytest.mark.xfail to a few tests). Same test works with httpx, so I suspect it's related to a client issue. I'll probably migrate to httpx as the reference client for testing async/await code.
- remove patches merged upstream:
    0007-Switching-to-httptools.parser.HttpRequestParser.patch
    0008-Disabling-tests-for-pook-when-testing-Python-3.11.patch
    0009-Removing-DeprecationWarning-all-over-the-place.patch
    0010-Python-3.11-needs-an-async-decorator.patch
    0012-Removing-async-timeout-dependency.patch
    0013-Refactoring-using-event_loop-fixture.patch
    0014-Refactoring-using-tempfile-as-a-context-manager.patch
    0015-Skip-those-tests-and-see-what-happens-to-the-rest.patch
- add these commits as patches from the upstream PR:
    0007-Switching-to-httptools.parser.HttpRequestParser.patch
    0008-Disabling-tests-for-pook-when-testing-Python-3.11.patch
    0009-Removing-DeprecationWarning-all-over-the-place.patch
    0010-Python-3.11-needs-an-async-decorator.patch
    0012-Removing-async-timeout-dependency.patch
    0013-Refactoring-using-event_loop-fixture.patch
    0014-Refactoring-using-tempfile-as-a-context-manager.patch
    0015-Skip-those-tests-and-see-what-happens-to-the-rest.patch
- skip now failing tests, update buildrequires for tests on py 3.11
- Update to version 3.10.9
  * Small improvement for socketpair by @mindflayer in #189
  * Fix for an unconvential usage of Mocket by @mindflayer in #192
  * Improve efficiency on CI by @amotl in #194
- Add missing fastapi test dependency
- update to version 3.10.8:
 - Support for calls made by fastapi (#188)
  * Introduce a `socket.socketpair()` function that acts as the real one
- update to version 3.10.7:
 - Adding support for `httpx` (#183)
 - Change methods not using its bound instance to staticmethods (#180)
- Clean test requirements and suggestions
- Drop recording-urllib3-brotli.patch fixed by updated httpx
- version update to 3.10.6
  No need for the external mock dependency
- deleted patches
  - python-mocket-no-mock.patch (upstreamed)
- do not require python-mock for build
- added patches
  fix https://github.com/mindflayer/python-mocket/issues/178
  + python-mocket-no-mock.patch
- - Bump Mocket version
 - MocketEntry.request_class str vs bytes  (#177)
   * Change request_cls to prevent unintended bytes -> str conversion (#176)
   * Use type from `.compat`.
   Co-authored-by: Michael Lazar <lazar.michael22@gmail.com>
 - Update README.rst
 - Remove blank lines after docstring (#174)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
 - Remove assert statement from non-test files (#173)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
 - Small refactor. (#172)
 - Update README.rst
 - Update LICENSE
 - No need for it.
 - New badge
 - Update README.rst
 - Update README.rst
 - Add Mocket "strict mode" (#171)
   * Add Mocket "strict mode".
 - Update main.yml
 - Introducing `request_list()` method (#170)
   * Introducing `request_list()` method.
 - Refactoring. (#169)
 - Some cleaning/refactoring (#168)
   * Some cleaning/refactoring.
   * Improving coverage.
 - Update README.rst
 - Use literal syntax instead of function calls to create data structure (#167)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
- Add recording-urllib3-brotli.patch for test data because the
  new urllib3 for Tumbleweed accepts Brotli encoding by default
  rendering the recorded request differently.
- Upstream dropped Python 2 support. Skip python2 build for 15.3
- Refresh test ignores for SLE/Leap (not that it matters, the only
  Python 3.7 test is skipped by name globally)
- - Add Mocket "strict mode" (#171)
   * Add Mocket "strict mode".
 - Update main.yml
 - Introducing `request_list()` method (#170)
   * Introducing `request_list()` method.
 - Refactoring. (#169)
 - Some cleaning/refactoring (#168)
   * Some cleaning/refactoring.
   * Improving coverage.
 - Update README.rst
 - Use literal syntax instead of function calls to create data structure (#167)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
- - Introducing `request_list()` method (#170)
   * Introducing `request_list()` method.
 - Refactoring. (#169)
 - Some cleaning/refactoring (#168)
   * Some cleaning/refactoring.
   * Improving coverage.
 - Update README.rst
 - Use literal syntax instead of function calls to create data structure (#167)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
- Update to version 3.10.2:
 - Help the user to spot issues (#166)
   * Help to detect `register()` misusage.
   * Bump version.
   * Improve DeepSource scans.
 - Newer `pipenv` and GIT hooks (#165)
   * Newer GIT hooks.
 - Remove implicit `object` from the base class (#164)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
 - Change methods not using its bound instance to staticmethods (#163)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
 - Add .deepsource.toml
 - Replace `dict` call with comprehension (#162)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
 - Refactor unnecessary `else` / `elif` when `if` block has a `return` statement (#161)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
 - Remove unnecessary generator (#160)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
 - Multi `register()` (#159)
   * Add failing test.
   * `Entry.collect` let us know if the response should be consumed or not.
   * Bump version.
 - Update README.rst
 - Update main.yml
 - In PYPI the package is old and broken
- Update to version 3.10.1:
 - Multi `register()` (#159)
   * Add failing test.
   * `Entry.collect` let us know if the response should be consumed or not.
   * Bump version.
 - Update README.rst
 - Update main.yml
 - In PYPI the package is old and broken
- update to version 3.10.0:
 - Fix for version number
 - Testing out Python 3.10 (#156)
   * Adding support for Python 3.10
 - Update LICENSE
 - Update main.yml
- remove obsolete kwsyntax.patch.
- Update to version 3.9.44:
 - Update __init__.py
 - Removing the constraint for `decorator`.
 - Update __init__.py (#155)
 - Patch from PR #150 (Refactored the mocketize decorator) (#153)
   * Patch from PR #150. Thanks to @micheles form the hints.
   * Complete refactor for using `decorator>=5`.
 - Update README.rs
- Add kwsyntax.patch to fix test failure with new decorator.
- Update to version 3.9.42:
 - Mock check_hostname everywhere (#152)
  * Fix for #151.
  * Complete refactoring.
- update to version 3.9.41:
 - A few refactors.
 - Adding `make setup` for local development.
 - Migrating package creation to using build.  Avoid decorator>=5 as dependency. (#149)
 - Avoid decorator>=5 as dependency. (#149)
- disable test test_asyncio_record_replay as it requires DNS.
- Update to version 3.9.40:
 - Fix for asyncio.open_connection() (#144)
 - fix UT for 3.5 support
- update to version 3.9.39:
 - Use MocketSocket as context manager (#141)
  * Adding support for using a `socket` as a context manager as requested by #139.
  * Closing real socket.
  * Bump version.
- update to version 3.9.38:
 - Update __init__.py
- update to version 3.9.37:
 - Fix for external decorators (#138)
- update to version 3.9.36:
 - New mocket method for checking if all entries have been served (#137)
 * Mocket method for checking if all entries have been served at least once.
 - Yet another refactor (#135)
 - Refactor. (#136)
- update to version 3.9.35:
 - Removing Python 2 compatibility layer (#134).
- Do not require and test with pook on Python2
- Update to version 3.9.4
  * fix for new version of pip resolver
- Skip python38 only tests in python36 flavor and python3 flavor
  if python3 <= 3.8 (Leap)
- Relax pinned setup.py requires so that the installed egg-info
  does not interfere with other packages
- Update to version 3.9.3:
 * Fix for `.makefile()` as reported by @KyleKing.
 * From `codecs` to `binascii` for PyPy. (#127)
- Update to version 3.9.2:
 * Mocket raises exceptions.
 * Fix for Python 2.
- Update to version 3.9.1:
 - Multiple HTTP writes (#125)
 - Fix for #111.
- Update to version 3.9.0:
 - MockHTTP uses `http-parser` as parser
   Fix for second sendall used for delivering request's body.
- Update to version 3.8.9:
 - Small refactor for HTTPretty plugin
   Now the import line can be written as from mocket.plugins.httpretty import httpretty, httprettified.
- Update to version 3.8.8:
 - Small fix applied to `setup.py`
- Update to version 3.8.7
  * This version ships the change to support the libmagic wrapper
    distributed with file's command.
- Switch to multibuild as we create cycle with python-pook otherwise
- Change requirements version specifier from == to >=.
- Update to version 3.8.6:
 - No upstream changelog available
- Use source tarball from pypi instead of GitHub.
- version update to 3.8.4
  * Adding missing `load_verify_locations` method
  * Removing `hexdump` dependency
  * Fix for removing DeprecationWarning (#105)
  * Py3.8 classifier
  * Fix for Redis module
- Update to 3.7.3:
  * testsuite fixes
- Drop patch partial-wildcards.patch
- Activate test suite
- Add patch partial-wildcards.patch
- Update to v3.7.2
- Initial spec for v2.7.2

OBS-URL: https://build.opensuse.org/request/show/1140590
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=32
2024-01-22 19:31:12 +00:00
Sebastian Wagner
c2aaaeb3a3 - skip test_truesendall_with_dump_from_recording and test_no_dangling_fds as they require internet connection
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=77
2024-01-22 08:54:37 +00:00
Sebastian Wagner
ff9eddff0f - add pytest-asyncio and psutil to test build requirements
- skip test_truesendall_with_dump_from_recording as it requires internet connection

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=76
2024-01-22 08:43:39 +00:00
Sebastian Wagner
c74ba86073 add psutil to test requirements
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=75
2024-01-22 08:39:09 +00:00
1016c0c1e9 - update to 3.12.3:
* Fixes for allowing making a mixture of unmocked and mocked
    HTTPS requests using aiohttp
  * Merging external contribution
  * Adding testcase for proving #209 was fixed

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=74
2024-01-20 19:40:59 +00:00
a81f500799 - update to 3.12.2:
* Pook is now compatible with modern Python versions
  * Excluding venvs from dist packages

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=73
2024-01-13 20:23:34 +00:00
Dominique Leuenberger
7c60ec3837 Accepting request 1136200 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1136200
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=31
2024-01-05 21:58:44 +00:00
Sebastian Wagner
e9006c4282 Accepting request 1135685 from home:alarrosa:branches:devel:languages:python
- Fix check that was testing the version package of python3-httpx.
  That's not available in SLE so we now use python311-httpx
  instead which allows the package to build fine in SLE's Python
  3.11 stack.

OBS-URL: https://build.opensuse.org/request/show/1135685
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=71
2024-01-02 14:15:51 +00:00
Ana Guerrero
83c3a838a2 Accepting request 1135272 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1135272
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=30
2023-12-28 21:54:46 +00:00
ab2bbdddf0 Accepting request 1135190 from home:ecsos:python
- Add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1135190
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=69
2023-12-27 10:47:23 +00:00
Ana Guerrero
b574afd743 Accepting request 1124075 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1124075
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=29
2023-11-08 21:17:06 +00:00
Sebastian Wagner
f86ffa3328 - Update to version 3.12.0:
* Support for Python 3.12 (#204)
 * Fix for Python 3.12
 * Getting rid of Python 3.7, since it's not supported anymore.
 * Precommit hooks' autoupdate.
 * Disabling `aiohttp` for testing Python 3.12.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=67
2023-10-31 17:51:21 +00:00
Ana Guerrero
6edcd3472c Accepting request 1119947 from devel:languages:python
- Run redis server on %check to fix redis tests that depends on a real
  redis server running.

OBS-URL: https://build.opensuse.org/request/show/1119947
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=28
2023-10-24 18:07:52 +00:00
0cccfa3fb6 - Run redis server on %check to fix redis tests that depends on a real
redis server running.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=65
2023-10-24 10:33:14 +00:00
Dominique Leuenberger
d8b5af66d0 Accepting request 1086730 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1086730
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=27
2023-05-13 15:17:18 +00:00
Sebastian Wagner
8ec143d534 Accepting request 1086729 from home:mcalabkova:branches:devel:languages:python
- Update to 3.11.1
  * Fix for `urllib2>=2`
  * Bump version for publishing a new release
  * Adding local container for partially replacing httpbin.org usage
  * Replacing httpbin.org with mockbin.org from Kong for what needs HTTPS

OBS-URL: https://build.opensuse.org/request/show/1086729
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=63
2023-05-12 10:55:59 +00:00
Dominique Leuenberger
da61a95bc3 Accepting request 1067850 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1067850
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=26
2023-02-28 11:48:00 +00:00
Sebastian Wagner
3af5ffac37 - Update to version 3.11:
- Migrating the HTTP[S] mock from relying on http-parser to httptools.
 - Never discovered the root cause for the failing tests with aiohttp/Python 3.11 (first time ever I added @pytest.mark.xfail to a few tests). Same test works with httpx, so I suspect it's related to a client issue. I'll probably migrate to httpx as the reference client for testing async/await code.
- remove patches merged upstream:
    0007-Switching-to-httptools.parser.HttpRequestParser.patch
    0008-Disabling-tests-for-pook-when-testing-Python-3.11.patch
    0009-Removing-DeprecationWarning-all-over-the-place.patch
    0010-Python-3.11-needs-an-async-decorator.patch
    0012-Removing-async-timeout-dependency.patch
    0013-Refactoring-using-event_loop-fixture.patch
    0014-Refactoring-using-tempfile-as-a-context-manager.patch
    0015-Skip-those-tests-and-see-what-happens-to-the-rest.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=61
2023-02-19 21:06:08 +00:00
Dominique Leuenberger
cf1eee5618 Accepting request 1065962 from devel:languages:python
- add these commits as patches from the upstream PR:
    0007-Switching-to-httptools.parser.HttpRequestParser.patch
    0008-Disabling-tests-for-pook-when-testing-Python-3.11.patch
    0009-Removing-DeprecationWarning-all-over-the-place.patch
    0010-Python-3.11-needs-an-async-decorator.patch
    0012-Removing-async-timeout-dependency.patch
    0013-Refactoring-using-event_loop-fixture.patch
    0014-Refactoring-using-tempfile-as-a-context-manager.patch
    0015-Skip-those-tests-and-see-what-happens-to-the-rest.patch
- skip now failing tests, update buildrequires for tests on py 3.11

OBS-URL: https://build.opensuse.org/request/show/1065962
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=25
2023-02-18 16:10:14 +00:00
83d90a8cf9 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=59 2023-02-15 13:11:24 +00:00
9a1bef72f9 - add these commits as patches from the upstream PR:
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=58
2023-02-02 11:46:15 +00:00
3556273a24 - replace python311.patch splitted comments from the upstream PR:
* adds
    0007-Switching-to-httptools.parser.HttpRequestParser.patch
    0008-Disabling-tests-for-pook-when-testing-Python-3.11.patch
    0009-Removing-DeprecationWarning-all-over-the-place.patch
    0010-Python-3.11-needs-an-async-decorator.patch
    0012-Removing-async-timeout-dependency.patch
    0013-Refactoring-using-event_loop-fixture.patch
    0014-Refactoring-using-tempfile-as-a-context-manager.patch
    0015-Skip-those-tests-and-see-what-happens-to-the-rest.patch
- skip now failing tests, update buildrequires for tests on py 3.11

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=57
2023-02-02 11:45:43 +00:00
Dominique Leuenberger
d1fb41b58d Accepting request 1046032 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1046032
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=24
2023-01-10 13:58:49 +00:00
Sebastian Wagner
d62182f130 Accepting request 1046026 from home:bnavigator:branches:devel:languages:python
- Update to version 3.10.9
  * Small improvement for socketpair by @mindflayer in #189
  * Fix for an unconvential usage of Mocket by @mindflayer in #192
  * Improve efficiency on CI by @amotl in #194
- Add missing fastapi test dependency

OBS-URL: https://build.opensuse.org/request/show/1046026
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=55
2023-01-01 19:33:44 +00:00
Sebastian Wagner
999c5902c0 - remove obsolete patch remove-mock.patch
- Update to version 1.19.4:
 * fix JSONDecodeError missing for py2.7

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=54
2022-08-31 18:58:52 +00:00
Sebastian Wagner
8bfd7fd1ea - update to version 3.10.8:
- Support for calls made by fastapi (#188)
  * Introduce a `socket.socketpair()` function that acts as the real one

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=53
2022-08-23 18:52:14 +00:00
Sebastian Wagner
fecef068db - update to version 3.10.7:
- Adding support for `httpx` (#183)
 - Change methods not using its bound instance to staticmethods (#180)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=52
2022-08-17 10:10:36 +00:00
Richard Brown
e0fc8da396 Accepting request 991053 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/991053
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=23
2022-07-26 17:42:07 +00:00
fcd88e7e17 Accepting request 990988 from home:bnavigator:branches:devel:languages:python
- Clean test requirements and suggestions
- Drop recording-urllib3-brotli.patch fixed by updated httpx
- version update to 3.10.6
  No need for the external mock dependency
- deleted patches
  - python-mocket-no-mock.patch (upstreamed)
- do not require python-mock for build
- added patches
  fix https://github.com/mindflayer/python-mocket/issues/178
  + python-mocket-no-mock.patch
- - Bump Mocket version
 - MocketEntry.request_class str vs bytes  (#177)
   * Change request_cls to prevent unintended bytes -> str conversion (#176)
   * Use type from `.compat`.
   Co-authored-by: Michael Lazar <lazar.michael22@gmail.com>
 - Update README.rst
 - Remove blank lines after docstring (#174)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
 - Remove assert statement from non-test files (#173)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
 - Small refactor. (#172)
 - Update README.rst
 - Update LICENSE
 - No need for it.
 - New badge
 - Update README.rst
 - Update README.rst
 - Add Mocket "strict mode" (#171)
   * Add Mocket "strict mode".
 - Update main.yml
 - Introducing `request_list()` method (#170)
   * Introducing `request_list()` method.
 - Refactoring. (#169)
 - Some cleaning/refactoring (#168)
   * Some cleaning/refactoring.
   * Improving coverage.
 - Update README.rst
 - Use literal syntax instead of function calls to create data structure (#167)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
- Add recording-urllib3-brotli.patch for test data because the
  new urllib3 for Tumbleweed accepts Brotli encoding by default
  rendering the recorded request differently.
- Upstream dropped Python 2 support. Skip python2 build for 15.3
- Refresh test ignores for SLE/Leap (not that it matters, the only
  Python 3.7 test is skipped by name globally)
- - Add Mocket "strict mode" (#171)
   * Add Mocket "strict mode".
 - Update main.yml
 - Introducing `request_list()` method (#170)
   * Introducing `request_list()` method.
 - Refactoring. (#169)
 - Some cleaning/refactoring (#168)
   * Some cleaning/refactoring.
   * Improving coverage.
 - Update README.rst
 - Use literal syntax instead of function calls to create data structure (#167)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
- - Introducing `request_list()` method (#170)
   * Introducing `request_list()` method.
 - Refactoring. (#169)
 - Some cleaning/refactoring (#168)
   * Some cleaning/refactoring.
   * Improving coverage.
 - Update README.rst
 - Use literal syntax instead of function calls to create data structure (#167)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
- Update to version 3.10.2:
 - Help the user to spot issues (#166)
   * Help to detect `register()` misusage.
   * Bump version.
   * Improve DeepSource scans.
 - Newer `pipenv` and GIT hooks (#165)
   * Newer GIT hooks.
 - Remove implicit `object` from the base class (#164)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
 - Change methods not using its bound instance to staticmethods (#163)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
 - Add .deepsource.toml
 - Replace `dict` call with comprehension (#162)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
 - Refactor unnecessary `else` / `elif` when `if` block has a `return` statement (#161)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
 - Remove unnecessary generator (#160)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
 - Multi `register()` (#159)
   * Add failing test.
   * `Entry.collect` let us know if the response should be consumed or not.
   * Bump version.
 - Update README.rst
 - Update main.yml
 - In PYPI the package is old and broken
- Update to version 3.10.1:
 - Multi `register()` (#159)
   * Add failing test.
   * `Entry.collect` let us know if the response should be consumed or not.
   * Bump version.
 - Update README.rst
 - Update main.yml
 - In PYPI the package is old and broken
- update to version 3.10.0:
 - Fix for version number
 - Testing out Python 3.10 (#156)
   * Adding support for Python 3.10
 - Update LICENSE
 - Update main.yml
- remove obsolete kwsyntax.patch.
- Update to version 3.9.44:
 - Update __init__.py
 - Removing the constraint for `decorator`.
 - Update __init__.py (#155)
 - Patch from PR #150 (Refactored the mocketize decorator) (#153)
   * Patch from PR #150. Thanks to @micheles form the hints.
   * Complete refactor for using `decorator>=5`.
 - Update README.rs
- Add kwsyntax.patch to fix test failure with new decorator.
- Update to version 3.9.42:
 - Mock check_hostname everywhere (#152)
  * Fix for #151.
  * Complete refactoring.
- update to version 3.9.41:
 - A few refactors.
 - Adding `make setup` for local development.
 - Migrating package creation to using build.  Avoid decorator>=5 as dependency. (#149)
 - Avoid decorator>=5 as dependency. (#149)
- disable test test_asyncio_record_replay as it requires DNS.
- Update to version 3.9.40:
 - Fix for asyncio.open_connection() (#144)
 - fix UT for 3.5 support
- update to version 3.9.39:
 - Use MocketSocket as context manager (#141)
  * Adding support for using a `socket` as a context manager as requested by #139.
  * Closing real socket.
  * Bump version.
- update to version 3.9.38:
 - Update __init__.py
- update to version 3.9.37:
 - Fix for external decorators (#138)
- update to version 3.9.36:
 - New mocket method for checking if all entries have been served (#137)
 * Mocket method for checking if all entries have been served at least once.
 - Yet another refactor (#135)
 - Refactor. (#136)
- update to version 3.9.35:
 - Removing Python 2 compatibility layer (#134).
- Do not require and test with pook on Python2
- Update to version 3.9.4
  * fix for new version of pip resolver
- Skip python38 only tests in python36 flavor and python3 flavor
  if python3 <= 3.8 (Leap)
- Relax pinned setup.py requires so that the installed egg-info
  does not interfere with other packages
- Update to version 3.9.3:
 * Fix for `.makefile()` as reported by @KyleKing.
 * From `codecs` to `binascii` for PyPy. (#127)
- Update to version 3.9.2:
 * Mocket raises exceptions.
 * Fix for Python 2.
- Update to version 3.9.1:
 - Multiple HTTP writes (#125)
 - Fix for #111.
- Update to version 3.9.0:
 - MockHTTP uses `http-parser` as parser
   Fix for second sendall used for delivering request's body.
- Update to version 3.8.9:
 - Small refactor for HTTPretty plugin
   Now the import line can be written as from mocket.plugins.httpretty import httpretty, httprettified.
- Update to version 3.8.8:
 - Small fix applied to `setup.py`
- Update to version 3.8.7
  * This version ships the change to support the libmagic wrapper
    distributed with file's command.
 
- Switch to multibuild as we create cycle with python-pook otherwise
- Change requirements version specifier from == to >=.
- Update to version 3.8.6:
 - No upstream changelog available
- Use source tarball from pypi instead of GitHub.
- version update to 3.8.4
  * Adding missing `load_verify_locations` method
  * Removing `hexdump` dependency
  * Fix for removing DeprecationWarning (#105)
  * Py3.8 classifier
  * Fix for Redis module
- Update to 3.7.3:
  * testsuite fixes
- Drop patch partial-wildcards.patch
- Activate test suite
- Add patch partial-wildcards.patch
- Update to v3.7.2
- Initial spec for v2.7.2

OBS-URL: https://build.opensuse.org/request/show/990988
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=50
2022-07-25 14:11:56 +00:00
Dominique Leuenberger
bfcc1f5271 Accepting request 977875 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/977875
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=22
2022-05-18 11:13:12 +00:00
Sebastian Wagner
f9b090fcef Accepting request 977873 from home:pgajdos:python
- version update to 3.10.6
  No need for the external mock dependency
- deleted patches
  - python-mocket-no-mock.patch (upstreamed)

OBS-URL: https://build.opensuse.org/request/show/977873
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=48
2022-05-18 06:49:31 +00:00
Sebastian Wagner
86c0462991 Accepting request 977787 from home:pgajdos:python
- do not require python-mock for build
- added patches
  fix https://github.com/mindflayer/python-mocket/issues/178
  + python-mocket-no-mock.patch

OBS-URL: https://build.opensuse.org/request/show/977787
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=47
2022-05-17 13:58:41 +00:00
Dominique Leuenberger
453a52e4cb Accepting request 974361 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/974361
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=21
2022-05-04 13:10:35 +00:00
Sebastian Wagner
48cacb46bf - Bump Mocket version
- MocketEntry.request_class str vs bytes  (#177)
   * Change request_cls to prevent unintended bytes -> str conversion (#176)
   * Use type from `.compat`.
   Co-authored-by: Michael Lazar <lazar.michael22@gmail.com>
 - Update README.rst
 - Remove blank lines after docstring (#174)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
 - Remove assert statement from non-test files (#173)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
 - Small refactor. (#172)
 - Update README.rst
 - Update LICENSE
 - No need for it.
 - New badge
 - Update README.rst
 - Update README.rst
 - Add Mocket "strict mode" (#171)
   * Add Mocket "strict mode".
 - Update main.yml
 - Introducing `request_list()` method (#170)
   * Introducing `request_list()` method.
 - Refactoring. (#169)
 - Some cleaning/refactoring (#168)
   * Some cleaning/refactoring.
   * Improving coverage.
 - Update README.rst
 - Use literal syntax instead of function calls to create data structure (#167)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=45
2022-04-25 08:36:22 +00:00
Dominique Leuenberger
b0d8ef0fb1 Accepting request 970640 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/970640
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=20
2022-04-23 17:45:19 +00:00
4fdb1b2da4 Accepting request 970633 from home:bnavigator:branches:devel:languages:python
- Add recording-urllib3-brotli.patch for test data because the
  new urllib3 for Tumbleweed accepts Brotli encoding by default
  rendering the recorded request differently.
- Upstream dropped Python 2 support. Skip python2 build for 15.3
- Refresh test ignores for SLE/Leap (not that it matters, the only
  Python 3.7 test is skipped by name globally)
- - Add Mocket "strict mode" (#171)
   * Add Mocket "strict mode".
 - Update main.yml
 - Introducing `request_list()` method (#170)
   * Introducing `request_list()` method.
 - Refactoring. (#169)
 - Some cleaning/refactoring (#168)
   * Some cleaning/refactoring.
   * Improving coverage.
 - Update README.rst
 - Use literal syntax instead of function calls to create data structure (#167)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
- - Introducing `request_list()` method (#170)
   * Introducing `request_list()` method.
 - Refactoring. (#169)
 - Some cleaning/refactoring (#168)
   * Some cleaning/refactoring.
   * Improving coverage.
 - Update README.rst
 - Use literal syntax instead of function calls to create data structure (#167)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
- Update to version 3.10.2:
 - Help the user to spot issues (#166)
   * Help to detect `register()` misusage.
   * Bump version.
   * Improve DeepSource scans.
 - Newer `pipenv` and GIT hooks (#165)
   * Newer GIT hooks.
 - Remove implicit `object` from the base class (#164)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
 - Change methods not using its bound instance to staticmethods (#163)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
 - Add .deepsource.toml
 - Replace `dict` call with comprehension (#162)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
 - Refactor unnecessary `else` / `elif` when `if` block has a `return` statement (#161)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
 - Remove unnecessary generator (#160)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
 - Multi `register()` (#159)
   * Add failing test.
   * `Entry.collect` let us know if the response should be consumed or not.
   * Bump version.
 - Update README.rst
 - Update main.yml
 - In PYPI the package is old and broken
- Update to version 3.10.1:
 - Multi `register()` (#159)
   * Add failing test.
   * `Entry.collect` let us know if the response should be consumed or not.
   * Bump version.
 - Update README.rst
 - Update main.yml
 - In PYPI the package is old and broken
- update to version 3.10.0:
 - Fix for version number
 - Testing out Python 3.10 (#156)
   * Adding support for Python 3.10
 - Update LICENSE
 - Update main.yml
- remove obsolete kwsyntax.patch.
- Update to version 3.9.44:
 - Update __init__.py
 - Removing the constraint for `decorator`.
 - Update __init__.py (#155)
 - Patch from PR #150 (Refactored the mocketize decorator) (#153)
   * Patch from PR #150. Thanks to @micheles form the hints.
   * Complete refactor for using `decorator>=5`.
 - Update README.rs
- Add kwsyntax.patch to fix test failure with new decorator.
- Update to version 3.9.42:
 - Mock check_hostname everywhere (#152)
  * Fix for #151.
  * Complete refactoring.
- update to version 3.9.41:
 - A few refactors.
 - Adding `make setup` for local development.
 - Migrating package creation to using build.  Avoid decorator>=5 as dependency. (#149)
 - Avoid decorator>=5 as dependency. (#149)
- disable test test_asyncio_record_replay as it requires DNS.
- Update to version 3.9.40:
 - Fix for asyncio.open_connection() (#144)
 - fix UT for 3.5 support
- update to version 3.9.39:
 - Use MocketSocket as context manager (#141)
  * Adding support for using a `socket` as a context manager as requested by #139.
  * Closing real socket.
  * Bump version.
- update to version 3.9.38:
 - Update __init__.py
- update to version 3.9.37:
 - Fix for external decorators (#138)
- update to version 3.9.36:
 - New mocket method for checking if all entries have been served (#137)
 * Mocket method for checking if all entries have been served at least once.
 - Yet another refactor (#135)
 - Refactor. (#136)
- update to version 3.9.35:
 - Removing Python 2 compatibility layer (#134).
- Do not require and test with pook on Python2
- Update to version 3.9.4
  * fix for new version of pip resolver
- Skip python38 only tests in python36 flavor and python3 flavor
  if python3 <= 3.8 (Leap)
- Relax pinned setup.py requires so that the installed egg-info
  does not interfere with other packages
- Update to version 3.9.3:
 * Fix for `.makefile()` as reported by @KyleKing.
 * From `codecs` to `binascii` for PyPy. (#127)
- Update to version 3.9.2:
 * Mocket raises exceptions.
 * Fix for Python 2.
- Update to version 3.9.1:
 - Multiple HTTP writes (#125)
 - Fix for #111.
- Update to version 3.9.0:
 - MockHTTP uses `http-parser` as parser
   Fix for second sendall used for delivering request's body.
- Update to version 3.8.9:
 - Small refactor for HTTPretty plugin
   Now the import line can be written as from mocket.plugins.httpretty import httpretty, httprettified.
- Update to version 3.8.8:
 - Small fix applied to `setup.py`
- Update to version 3.8.7
  * This version ships the change to support the libmagic wrapper
    distributed with file's command.
 
- Switch to multibuild as we create cycle with python-pook otherwise
- Change requirements version specifier from == to >=.
- Update to version 3.8.6:
 - No upstream changelog available
- Use source tarball from pypi instead of GitHub.
- version update to 3.8.4
  * Adding missing `load_verify_locations` method
  * Removing `hexdump` dependency
  * Fix for removing DeprecationWarning (#105)
  * Py3.8 classifier
  * Fix for Redis module
- Update to 3.7.3:
  * testsuite fixes
- Drop patch partial-wildcards.patch
- Activate test suite
- Add patch partial-wildcards.patch
- Update to v3.7.2
- Initial spec for v2.7.2

OBS-URL: https://build.opensuse.org/request/show/970633
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=43
2022-04-18 22:34:38 +00:00
Dominique Leuenberger
817e066b85 Accepting request 946839 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/946839
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=19
2022-01-19 23:11:56 +00:00
Sebastian Wagner
1b295dc41f - Add Mocket "strict mode" (#171)
* Add Mocket "strict mode".
 - Update main.yml
 - Introducing `request_list()` method (#170)
   * Introducing `request_list()` method.
 - Refactoring. (#169)
 - Some cleaning/refactoring (#168)
   * Some cleaning/refactoring.
   * Improving coverage.
 - Update README.rst
 - Use literal syntax instead of function calls to create data structure (#167)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=42
2022-01-09 19:22:02 +00:00
Sebastian Wagner
c7f4319527 - Introducing request_list() method (#170)
* Introducing `request_list()` method.
 - Refactoring. (#169)
 - Some cleaning/refactoring (#168)
   * Some cleaning/refactoring.
   * Improving coverage.
 - Update README.rst
 - Use literal syntax instead of function calls to create data structure (#167)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=41
2022-01-08 21:39:31 +00:00
Dominique Leuenberger
0c77329427 Accepting request 941604 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/941604
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=18
2021-12-20 20:06:15 +00:00
76b6e6c430 Accepting request 941603 from home:dimstar:Factory
Drop duplicated changelog entries

OBS-URL: https://build.opensuse.org/request/show/941603
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=40
2021-12-20 09:19:02 +00:00
Dominique Leuenberger
b9a96fa935 Accepting request 937323 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/937323
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=17
2021-12-12 20:26:58 +00:00
OBS User buildservice-autocommit
c4b7b5a9ed Updating link to change in openSUSE:Factory/python-mocket revision 17.0
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=25efaf4dbd23564f6c0894b36b4841d2
2021-12-12 20:26:58 +00:00
Sebastian Wagner
c4a05211b7 fix changelo
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=39
2021-12-09 07:54:57 +00:00
Sebastian Wagner
cbf6417242 - Help the user to spot issues (#166)
* Help to detect `register()` misusage.
   * Bump version.
   * Improve DeepSource scans.
 - Newer `pipenv` and GIT hooks (#165)
   * Newer GIT hooks.
 - Remove implicit `object` from the base class (#164)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
 - Change methods not using its bound instance to staticmethods (#163)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
 - Add .deepsource.toml
 - Replace `dict` call with comprehension (#162)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
 - Refactor unnecessary `else` / `elif` when `if` block has a `return` statement (#161)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
 - Remove unnecessary generator (#160)
   Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
 - Multi `register()` (#159)
   * Add failing test.
   * `Entry.collect` let us know if the response should be consumed or not.
   * Bump version.
 - Update README.rst
 - Update main.yml
 - In PYPI the package is old and broken

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=38
2021-12-01 21:17:44 +00:00
Sebastian Wagner
ea2fc887aa - Multi register() (#159)
* Add failing test.
   * `Entry.collect` let us know if the response should be consumed or not.
   * Bump version.
 - Update README.rst
 - Update main.yml
 - In PYPI the package is old and broken

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=37
2021-11-27 10:12:48 +00:00
Dominique Leuenberger
ae451a62cc Accepting request 922650 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/922650
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=16
2021-10-20 18:23:13 +00:00
Sebastian Wagner
722fc840a4 - update to version 3.10.0:
- Fix for version number
 - Testing out Python 3.10 (#156)
   * Adding support for Python 3.10
 - Update LICENSE
 - Update main.yml

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=36
2021-09-24 19:51:51 +00:00
Dominique Leuenberger
497ed31558 Accepting request 918466 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/918466
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=15
2021-09-16 21:14:33 +00:00
Sebastian Wagner
067dae6989 - Update to version 3.9.44:
- Update __init__.py
 - Removing the constraint for `decorator`.
 - Update __init__.py (#155)
 - Patch from PR #150 (Refactored the mocketize decorator) (#153)
   * Patch from PR #150. Thanks to @micheles form the hints.
   * Complete refactor for using `decorator>=5`.
 - Update README.rs

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=35
2021-09-04 18:23:00 +00:00
Richard Brown
56fe7562e7 Accepting request 910434 from devel:languages:python
- Add kwsyntax.patch to fix test failure with new decorator.

OBS-URL: https://build.opensuse.org/request/show/910434
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=14
2021-08-11 09:47:00 +00:00
217ccaf564 unpin decorator
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=34
2021-08-06 07:03:17 +00:00
76b95ce162 Accepting request 910345 from home:mcalabkova:branches:devel:languages:python
- Add kwsyntax.patch to fix test failure with new decorator.

OBS-URL: https://build.opensuse.org/request/show/910345
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=33
2021-08-05 15:32:07 +00:00
Dominique Leuenberger
da6ffadc7a Accepting request 905609 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/905609
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=13
2021-07-13 20:36:55 +00:00
Sebastian Wagner
cf01a2ae5e - Update to version 3.9.42:
- Mock check_hostname everywhere (#152)
  * Fix for #151.
  * Complete refactoring.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=32
2021-07-03 20:25:52 +00:00
Dominique Leuenberger
607d8aff46 Accepting request 896019 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/896019
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=12
2021-06-05 21:30:09 +00:00
Sebastian Wagner
e819c35552 - update to version 3.9.41:
- A few refactors.
 - Adding `make setup` for local development.
 - Migrating package creation to using build.  Avoid decorator>=5 as dependency. (#149)
 - Avoid decorator>=5 as dependency. (#149)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=30
2021-05-21 16:07:55 +00:00
Dominique Leuenberger
7d84da793b Accepting request 868763 from devel:languages:python
- disable test test_asyncio_record_replay as it requires DNS.
- Update to version 3.9.40:
 - Fix for asyncio.open_connection() (#144)
 - fix UT for 3.5 support

OBS-URL: https://build.opensuse.org/request/show/868763
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=11
2021-02-04 19:23:25 +00:00
Sebastian Wagner
e2090403ea - disable test test_asyncio_record_replay as it requires DNS.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=28
2021-02-02 21:34:29 +00:00
Dominique Leuenberger
cd19d0cfd5 Accepting request 866084 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/866084
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=10
2021-01-26 13:44:20 +00:00
Sebastian Wagner
fbf353bb75 - Update to version 3.9.40:
- Fix for asyncio.open_connection() (#144)
 - fix UT for 3.5 support

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=26
2021-01-23 19:21:51 +00:00
Dominique Leuenberger
e502caa04a Accepting request 862099 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/862099
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=9
2021-01-15 18:43:58 +00:00
Sebastian Wagner
a496061060 - update to version 3.9.39:
- Use MocketSocket as context manager (#141)
  * Adding support for using a `socket` as a context manager as requested by #139.
  * Closing real socket.
  * Bump version.
- update to version 3.9.38:
 - Update __init__.py
- update to version 3.9.37:
 - Fix for external decorators (#138)
- update to version 3.9.36:
 - New mocket method for checking if all entries have been served (#137)
 * Mocket method for checking if all entries have been served at least once.
 - Yet another refactor (#135)
 - Refactor. (#136)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=24
2021-01-15 17:01:33 +00:00
Sebastian Wagner
0470e3ebce - update to version 3.9.35:
- Removing Python 2 compatibility layer (#134).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=23
2021-01-03 10:38:44 +00:00
Dominique Leuenberger
eb07ce42e1 Accepting request 856852 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/856852
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=8
2020-12-21 11:35:17 +00:00
50f2e8f3e9 Accepting request 856730 from home:bnavigator:branches:devel:languages:python
- Do not require and test with pook on Python2

We will need something like a python3_module macro available to the OBS resolver in order to make stuff like this easier

OBS-URL: https://build.opensuse.org/request/show/856730
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=21
2020-12-18 09:59:38 +00:00
2bab1f94c9 Accepting request 856705 from home:bnavigator:branches:devel:languages:python
- Update to version 3.9.4
  * fix for new version of pip resolver
- Skip python38 only tests in python36 flavor and python3 flavor
  if python3 <= 3.8 (Leap)

OBS-URL: https://build.opensuse.org/request/show/856705
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=20
2020-12-17 16:01:35 +00:00
Dominique Leuenberger
b32a6ddc34 Accepting request 854523 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/854523
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=7
2020-12-12 19:29:43 +00:00
1b593d3c70 Accepting request 854406 from home:bnavigator:branches:devel:languages:python
- Relax pinned setup.py requires so that the installed egg-info
  does not interfere with other packages

OBS-URL: https://build.opensuse.org/request/show/854406
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=18
2020-12-10 10:30:11 +00:00
Sebastian Wagner
13f014ddf4 - Update to version 3.9.3:
* Fix for `.makefile()` as reported by @KyleKing.
 * From `codecs` to `binascii` for PyPy. (#127)
- Update to version 3.9.2:
 * Mocket raises exceptions.
 * Fix for Python 2.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=17
2020-11-09 20:24:22 +00:00
Dominique Leuenberger
eebf2d8c35 Accepting request 842363 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/842363
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=6
2020-10-29 08:48:24 +00:00
Sebastian Wagner
6a78b40fc6 - Update to version 3.9.1:
- Multiple HTTP writes (#125)
 - Fix for #111.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=15
2020-10-11 07:05:14 +00:00
9738011aa7 Accepting request 837880 from home:sebix:branches:devel:languages:python
please forward to Factory. This version is required for the geoip2 4.1.0 version
changes are extracted from tag descriptions

- Update to version 3.9.0:
 - MockHTTP uses `http-parser` as parser
   Fix for second sendall used for delivering request's body.
- Update to version 3.8.9:
 - Small refactor for HTTPretty plugin
   Now the import line can be written as from mocket.plugins.httpretty import httpretty, httprettified.
- Update to version 3.8.8:
 - Small fix applied to `setup.py`

OBS-URL: https://build.opensuse.org/request/show/837880
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=14
2020-09-26 12:07:01 +00:00
Dominique Leuenberger
b855e81536 Accepting request 825737 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/825737
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=5
2020-08-12 08:30:57 +00:00
Tomáš Chvátal
63400cb400 Accepting request 825717 from home:bnavigator:branches:devel:languages:python
- Update to version 3.8.7
  * This version ships the change to support the libmagic wrapper
    distributed with file's command.

Keeping the skip build in test flavor. See comment.

-------------------------------------------------------------------

OBS-URL: https://build.opensuse.org/request/show/825717
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=12
2020-08-11 09:12:25 +00:00
Tomáš Chvátal
2fbc3ab63d - Switch to multibuild as we create cycle with python-pook otherwise
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=11
2020-08-11 07:08:33 +00:00
Dominique Leuenberger
2044e4012b Accepting request 824997 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/824997
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=4
2020-08-10 12:59:06 +00:00
Tomáš Chvátal
00084d2a82 Accepting request 824993 from home:sebix:branches:devel:languages:python
please forward to factory

- Change requirements version specifier from == to >=.

OBS-URL: https://build.opensuse.org/request/show/824993
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=9
2020-08-08 14:05:53 +00:00
Dominique Leuenberger
f09f76d266 Accepting request 822514 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/822514
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=3
2020-07-24 10:09:33 +00:00
4651ce1ebd Accepting request 822509 from home:sebix:branches:devel:languages:python
- Update to version 3.8.6:
 - No upstream changelog available
- Use source tarball from pypi instead of GitHub.

OBS-URL: https://build.opensuse.org/request/show/822509
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=7
2020-07-24 01:00:55 +00:00
Dominique Leuenberger
a9a507e1a9 Accepting request 790553 from devel:languages:python
- version update to 3.8.4
  * Adding missing `load_verify_locations` method
  * Removing `hexdump` dependency
  * Fix for removing DeprecationWarning (#105)
  * Py3.8 classifier
  * Fix for Redis module

OBS-URL: https://build.opensuse.org/request/show/790553
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=2
2020-04-01 17:19:48 +00:00
Tomáš Chvátal
cb156e20a7 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=5 2020-04-01 11:36:44 +00:00
Tomáš Chvátal
a55ce20a52 Accepting request 790542 from home:pgajdos:python
- version update to 3.8.4
  * Adding missing `load_verify_locations` method
  * Removing `hexdump` dependency
  * Fix for removing DeprecationWarning (#105)
  * Py3.8 classifier
  * Fix for Redis module

OBS-URL: https://build.opensuse.org/request/show/790542
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=4
2020-04-01 11:34:21 +00:00
Dominique Leuenberger
8b0fa0587a Accepting request 731657 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/731657
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=1
2019-09-23 10:33:03 +00:00
Tomáš Chvátal
74dcb3cde6 - Update to 3.7.3:
* testsuite fixes
- Drop patch partial-wildcards.patch
- Add patch partial-wildcards.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=2
2019-09-18 07:41:41 +00:00
Tomáš Chvátal
c97da4fa1a Accepting request 731639 from home:jayvdb:py-new
add patch to fix py2 bug

OBS-URL: https://build.opensuse.org/request/show/731639
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=1
2019-09-18 07:40:00 +00:00
5 changed files with 55 additions and 34 deletions

BIN
mocket-3.12.8.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6a26dd098325a3d83f3ea82510172feb5281d4eed8f4d0b535e3646d8e78752f
size 73303

BIN
mocket-3.13.2.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,29 @@
-------------------------------------------------------------------
Wed Oct 23 20:11:41 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 3.13.2:
* Test the plugin for `pook` separately
* Refactoring FakeSSLContext
* Increasing readability of Mocket core
* `aiohttp` reuses SSLContext instances created at import-time
- update to 3.13.1:
* No need to keep multiple dirs for tests
* Back to testing `doctest`
* Pinning the version of `aiohttp`
* Test with the official stable Python 3.13
* Switching to using `puremagic` for identifying MIME types
-------------------------------------------------------------------
Tue Oct 1 09:18:21 UTC 2024 - Markéta Machová <mmachova@suse.com>
- Skip test failing with new aiohttp
-------------------------------------------------------------------
Thu Sep 26 08:25:18 UTC 2024 - Sebastian Wagner <sebix@sebix.at>
- update to version 3.13.0:
- Adding Python 3.13 support by @mindflayer in #242
-------------------------------------------------------------------
Tue Sep 3 07:23:27 UTC 2024 - Sebastian Wagner <sebix@sebix.at>
@ -128,14 +154,14 @@ Sun Jan 1 18:43:24 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Add missing fastapi test dependency
-------------------------------------------------------------------
Tue Aug 23 18:47:07 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
Tue Aug 23 18:47:07 UTC 2022 - Sebastian Wagner <sebix@sebix.at>
- update to version 3.10.8:
- Support for calls made by fastapi (#188)
* Introduce a `socket.socketpair()` function that acts as the real one
-------------------------------------------------------------------
Wed Aug 17 10:09:41 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
Wed Aug 17 10:09:41 UTC 2022 - Sebastian Wagner <sebix@sebix.at>
- update to version 3.10.7:
- Adding support for `httpx` (#183)
@ -164,7 +190,7 @@ Tue May 17 13:29:27 UTC 2022 - pgajdos@suse.com
+ python-mocket-no-mock.patch
-------------------------------------------------------------------
Mon Apr 25 08:36:19 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
Mon Apr 25 08:36:19 UTC 2022 - Sebastian Wagner <sebix@sebix.at>
- - Bump Mocket version
- MocketEntry.request_class str vs bytes (#177)
@ -207,7 +233,7 @@ Mon Apr 18 19:31:43 UTC 2022 - Ben Greiner <code@bnavigator.de>
Python 3.7 test is skipped by name globally)
-------------------------------------------------------------------
Sun Jan 9 19:21:59 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
Sun Jan 9 19:21:59 UTC 2022 - Sebastian Wagner <sebix@sebix.at>
- - Add Mocket "strict mode" (#171)
* Add Mocket "strict mode".
@ -223,7 +249,7 @@ Sun Jan 9 19:21:59 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
-------------------------------------------------------------------
Sat Jan 8 21:39:28 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
Sat Jan 8 21:39:28 UTC 2022 - Sebastian Wagner <sebix@sebix.at>
- - Introducing `request_list()` method (#170)
* Introducing `request_list()` method.
@ -236,7 +262,7 @@ Sat Jan 8 21:39:28 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
-------------------------------------------------------------------
Wed Dec 1 21:17:39 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
Wed Dec 1 21:17:39 UTC 2021 - Sebastian Wagner <sebix@sebix.at>
- Update to version 3.10.2:
- Help the user to spot issues (#166)
@ -265,7 +291,7 @@ Wed Dec 1 21:17:39 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- In PYPI the package is old and broken
-------------------------------------------------------------------
Sat Nov 27 10:12:44 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
Sat Nov 27 10:12:44 UTC 2021 - Sebastian Wagner <sebix@sebix.at>
- Update to version 3.10.1:
- Multi `register()` (#159)
@ -277,7 +303,7 @@ Sat Nov 27 10:12:44 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- In PYPI the package is old and broken
-------------------------------------------------------------------
Fri Sep 24 19:50:05 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
Fri Sep 24 19:50:05 UTC 2021 - Sebastian Wagner <sebix@sebix.at>
- update to version 3.10.0:
- Fix for version number
@ -287,12 +313,12 @@ Fri Sep 24 19:50:05 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Update main.yml
-------------------------------------------------------------------
Sat Sep 4 18:19:20 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
Sat Sep 4 18:19:20 UTC 2021 - Sebastian Wagner <sebix@sebix.at>
- remove obsolete kwsyntax.patch.
-------------------------------------------------------------------
Sat Sep 4 18:10:11 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
Sat Sep 4 18:10:11 UTC 2021 - Sebastian Wagner <sebix@sebix.at>
- Update to version 3.9.44:
- Update __init__.py
@ -309,7 +335,7 @@ Thu Aug 5 15:22:22 UTC 2021 - Markéta Machová <mmachova@suse.com>
- Add kwsyntax.patch to fix test failure with new decorator.
-------------------------------------------------------------------
Sat Jul 3 20:16:19 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
Sat Jul 3 20:16:19 UTC 2021 - Sebastian Wagner <sebix@sebix.at>
- Update to version 3.9.42:
- Mock check_hostname everywhere (#152)
@ -317,7 +343,7 @@ Sat Jul 3 20:16:19 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
* Complete refactoring.
-------------------------------------------------------------------
Fri May 21 16:02:54 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
Fri May 21 16:02:54 UTC 2021 - Sebastian Wagner <sebix@sebix.at>
- update to version 3.9.41:
- A few refactors.
@ -326,19 +352,19 @@ Fri May 21 16:02:54 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Avoid decorator>=5 as dependency. (#149)
-------------------------------------------------------------------
Tue Feb 2 21:33:54 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
Tue Feb 2 21:33:54 UTC 2021 - Sebastian Wagner <sebix@sebix.at>
- disable test test_asyncio_record_replay as it requires DNS.
-------------------------------------------------------------------
Sat Jan 23 19:20:19 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
Sat Jan 23 19:20:19 UTC 2021 - Sebastian Wagner <sebix@sebix.at>
- Update to version 3.9.40:
- Fix for asyncio.open_connection() (#144)
- fix UT for 3.5 support
-------------------------------------------------------------------
Fri Jan 15 16:56:37 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
Fri Jan 15 16:56:37 UTC 2021 - Sebastian Wagner <sebix@sebix.at>
- update to version 3.9.39:
- Use MocketSocket as context manager (#141)
@ -356,7 +382,7 @@ Fri Jan 15 16:56:37 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Refactor. (#136)
-------------------------------------------------------------------
Sun Jan 3 10:37:41 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
Sun Jan 3 10:37:41 UTC 2021 - Sebastian Wagner <sebix@sebix.at>
- update to version 3.9.35:
- Removing Python 2 compatibility layer (#134).
@ -381,7 +407,7 @@ Thu Dec 10 01:45:45 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
does not interfere with other packages
-------------------------------------------------------------------
Mon Nov 9 20:23:21 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
Mon Nov 9 20:23:21 UTC 2020 - Sebastian Wagner <sebix@sebix.at>
- Update to version 3.9.3:
* Fix for `.makefile()` as reported by @KyleKing.
@ -391,14 +417,14 @@ Mon Nov 9 20:23:21 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
* Fix for Python 2.
-------------------------------------------------------------------
Sun Oct 11 07:03:02 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
Sun Oct 11 07:03:02 UTC 2020 - Sebastian Wagner <sebix@sebix.at>
- Update to version 3.9.1:
- Multiple HTTP writes (#125)
- Fix for #111.
-------------------------------------------------------------------
Sat Sep 26 07:39:57 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
Sat Sep 26 07:39:57 UTC 2020 - Sebastian Wagner <sebix@sebix.at>
- Update to version 3.9.0:
- MockHTTP uses `http-parser` as parser
@ -422,12 +448,12 @@ Tue Aug 11 07:08:04 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Switch to multibuild as we create cycle with python-pook otherwise
-------------------------------------------------------------------
Sat Aug 8 13:00:29 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
Sat Aug 8 13:00:29 UTC 2020 - Sebastian Wagner <sebix@sebix.at>
- Change requirements version specifier from == to >=.
-------------------------------------------------------------------
Thu Jul 23 18:54:20 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
Thu Jul 23 18:54:20 UTC 2020 - Sebastian Wagner <sebix@sebix.at>
- Update to version 3.8.6:
- No upstream changelog available

View File

@ -1,5 +1,5 @@
#
# spec file
# spec file for package python-mocket
#
# Copyright (c) 2024 SUSE LLC
#
@ -27,7 +27,7 @@
%{?sle15_python_module_pythons}
Name: python-mocket%{psuffix}
Version: 3.12.9
Version: 3.13.2
Release: 0
Summary: Python socket mock framework
License: BSD-3-Clause
@ -41,9 +41,8 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-decorator >= 4
Requires: python-h11
Requires: python-python-magic >= 0.4.5
Requires: python-puremagic
Requires: python-urllib3 >= 1.25.3
Suggests: python-pook >= 0.2.1
Suggests: python-xxhash
BuildArch: noarch
%if %{with test}
@ -53,7 +52,6 @@ BuildRequires: %{python_module fastapi}
BuildRequires: %{python_module gevent}
BuildRequires: %{python_module httptools}
BuildRequires: %{python_module mocket = %{version}}
BuildRequires: %{python_module pook >= 0.2.1}
BuildRequires: %{python_module psutil}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest}
@ -108,8 +106,8 @@ donttest="test_asyncio_record_replay or test_truesendall_with_dump_from_recordin
%if %{pkg_vcmp python311-httpx < 0.23}
donttest="$donttest or test_truesendall_with_dump_from_recording"
%endif
# these fail after the python 3.11 patches
#donttest="$donttest or test_http_session or test_https_session or test_httprettish_session or test_truesendall or test_wrongpath_truesendall or test_real_request_session or test_multiple_socket_connections or test_intermittent_strict_mode or test_strict_mode_exceptions or test_err or test_get or test_hm or test_incr or test_lrange or test_select_db or test_set or test_shutdown or test_hgetall or test_raise_exception"
# fails with new incompatible aiohttp version https://github.com/mindflayer/python-mocket/issues/247
donttest="$donttest or test_aiohttp"
%pytest -rfEs -k "not ($donttest)" ${pytest_$python_ignore} tests
%endif