1
0
forked from pool/python-mocket
Commit Graph

64 Commits

Author SHA256 Message Date
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