17
0

Commit Graph

  • f6a046090d Accepting request 1221494 from devel:languages:python factory Ana Guerrero 2024-11-06 15:49:58 +00:00
  • 8e7091070b Accepting request 1221438 from home:pgajdos:python Markéta Machová 2024-11-05 15:33:11 +00:00
  • be6be93ccd Accepting request 1172635 from devel:languages:python slfo-main slfo-1.2 Ana Guerrero 2024-05-13 15:56:58 +00:00
  • 4b7260c96b Accepting request 1172635 from devel:languages:python Ana Guerrero 2024-05-13 15:56:58 +00:00
  • c605fc2727 - Use the %pyunittest macro to run tests (because of testtools) Steve Kowalik 2024-05-08 06:41:27 +00:00
  • 1baa2fe27b - Use the %pyunittest macro to run tests (because of testtools) Steve Kowalik 2024-05-08 06:41:27 +00:00
  • bde40cce5b Accepting request 1165815 from devel:languages:python Ana Guerrero 2024-04-07 20:04:36 +00:00
  • ff08a4a560 Accepting request 1165815 from devel:languages:python Ana Guerrero 2024-04-07 20:04:36 +00:00
  • b3f236bebe - update to 1.12.1: * Set python_requires to >3 to prevent installation in python2 deployments. - update to 1.12.0: * Remove py2 * Allow raw parameter to accept callable like body elements * Improve type definition of Mocker.__call__ * Drop PBR Support * fix(mocker.pyi): fix Mocker class type hints * Remove unused six dependency - switch to run tests with pytest * Use unittest.mock if available. Dirk Mueller 2024-04-06 12:17:01 +00:00
  • e10a43eea5 - update to 1.12.1: * Set python_requires to >3 to prevent installation in python2 deployments. - update to 1.12.0: * Remove py2 * Allow raw parameter to accept callable like body elements * Improve type definition of Mocker.__call__ * Drop PBR Support * fix(mocker.pyi): fix Mocker class type hints * Remove unused six dependency - switch to run tests with pytest * Use unittest.mock if available. Dirk Mueller 2024-04-06 12:17:01 +00:00
  • dc0e0428e2 Accepting request 1157421 from devel:languages:python Ana Guerrero 2024-03-13 21:16:05 +00:00
  • f62f66e334 Accepting request 1157421 from devel:languages:python Ana Guerrero 2024-03-13 21:16:05 +00:00
  • 55cac90fb1 - Drop unneeded Requires, and also no longer restrict urllib3. - Switch to pyproject macros. Steve Kowalik 2024-03-13 06:31:16 +00:00
  • 00eb9831f3 - Drop unneeded Requires, and also no longer restrict urllib3. - Switch to pyproject macros. Steve Kowalik 2024-03-13 06:31:16 +00:00
  • 64d88e0853 Accepting request 1129211 from devel:languages:python Ana Guerrero 2023-11-28 21:18:44 +00:00
  • 08a20766d4 Accepting request 1129211 from devel:languages:python Ana Guerrero 2023-11-28 21:18:44 +00:00
  • e52ac64447 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=56 Dirk Mueller 2023-07-17 21:10:18 +00:00
  • 9f22f213aa OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=56 Dirk Mueller 2023-07-17 21:10:18 +00:00
  • 2b65f10372 - update to 1.11.0: * Exposes some public type aliases (for type hinting only, they can't be instanciated) * for the types intended to be used by requests_mock users. * The following types are now exposed: * requests_mock.Context used in callbacks * requests_mock.Request used in callbacks, which is a requests.PreparedRequest proxy. * requests_mock.Callback[T] which is the callbacks type. * .. _requests-mock_1.11.0_Bug Fixes: * Some typing inconsistencies have been fixed. * Especially for request object in signatures which is in fact a requests_mock.Request object. * Fix incompatibility with urllib3 >2.0.0. In 2.0.0 they default to enforcing content length checking on returned bodies in responses from the previous default of false. However the flag is still available so for compatibility we can just default the other way. - drop remove-mock.patch (upstream) Dirk Mueller 2023-07-17 16:29:08 +00:00
  • aa6ce3ba76 - update to 1.11.0: * Exposes some public type aliases (for type hinting only, they can't be instanciated) * for the types intended to be used by requests_mock users. * The following types are now exposed: * requests_mock.Context used in callbacks * requests_mock.Request used in callbacks, which is a requests.PreparedRequest proxy. * requests_mock.Callback[T] which is the callbacks type. * .. _requests-mock_1.11.0_Bug Fixes: * Some typing inconsistencies have been fixed. * Especially for request object in signatures which is in fact a requests_mock.Request object. * Fix incompatibility with urllib3 >2.0.0. In 2.0.0 they default to enforcing content length checking on returned bodies in responses from the previous default of false. However the flag is still available so for compatibility we can just default the other way. - drop remove-mock.patch (upstream) Dirk Mueller 2023-07-17 16:29:08 +00:00
  • 1ee7b86433 Accepting request 1081779 from devel:languages:python Dominique Leuenberger 2023-04-22 19:58:57 +00:00
  • f7c226ffad Accepting request 1081779 from devel:languages:python Dominique Leuenberger 2023-04-22 19:58:57 +00:00
  • 3da76ed9d4 Accepting request 1081596 from home:dirkmueller:acdc:as_python3_module Dirk Mueller 2023-04-21 13:37:38 +00:00
  • e319622ace Accepting request 1081596 from home:dirkmueller:acdc:as_python3_module Dirk Mueller 2023-04-21 13:37:38 +00:00
  • 62a83c36af Accepting request 1062543 from devel:languages:python Dominique Leuenberger 2023-02-03 21:04:33 +00:00
  • 03c0a3243f Accepting request 1062543 from devel:languages:python Dominique Leuenberger 2023-02-03 21:04:33 +00:00
  • bf550dec1d - switch to run tests with pytest - build with all python flavors for SLE 15 SP4+ Dirk Mueller 2023-02-01 20:41:07 +00:00
  • f91361c085 - switch to run tests with pytest - build with all python flavors for SLE 15 SP4+ Dirk Mueller 2023-02-01 20:41:07 +00:00
  • f8155f5682 Accepting request 1056828 from devel:languages:python Dominique Leuenberger 2023-01-10 13:58:53 +00:00
  • 620da69570 Accepting request 1056828 from devel:languages:python Dominique Leuenberger 2023-01-10 13:58:53 +00:00
  • c806c7d6ee - update to 1.10.0: * Add a release note for the RLock * Allow passing json\_encoder to mocking * Improvements to Type Hints * Lint fix for long line exception * Shorten line length of comments * Workaround for python2.7 not supporting lock timeout * Comments to explain reentrant behaviour * Change to use RLock and set a timeout to prevent infinite deadlocks * Update homepage/doc URLs of requests library * Add comment for pytest late loading feature * pytest plugin should lazy-load requests\_mock * Add test for threaded race condition * Use threading.Lock() to prevent race conditions around monkeypatching of get\_adapter() * add GitHub URL for PyPi * Add reset methods on the Mocker class type * Avoid using distutils to check pytest version * YAML quoting * Support Python 3.10 * Minor changes to code snippet example * Fix DeprecationWarnings in setup.cfg keys * a few minor fixes and proposed changes to documentation files * Improve response-related param type hints * Explicitly indicate start of keyword-only args * Fix failing pytest Dirk Mueller 2023-01-07 22:57:14 +00:00
  • a6510a2bbd - update to 1.10.0: * Add a release note for the RLock * Allow passing json\_encoder to mocking * Improvements to Type Hints * Lint fix for long line exception * Shorten line length of comments * Workaround for python2.7 not supporting lock timeout * Comments to explain reentrant behaviour * Change to use RLock and set a timeout to prevent infinite deadlocks * Update homepage/doc URLs of requests library * Add comment for pytest late loading feature * pytest plugin should lazy-load requests\_mock * Add test for threaded race condition * Use threading.Lock() to prevent race conditions around monkeypatching of get\_adapter() * add GitHub URL for PyPi * Add reset methods on the Mocker class type * Avoid using distutils to check pytest version * YAML quoting * Support Python 3.10 * Minor changes to code snippet example * Fix DeprecationWarnings in setup.cfg keys * a few minor fixes and proposed changes to documentation files * Improve response-related param type hints * Explicitly indicate start of keyword-only args * Fix failing pytest Dirk Mueller 2023-01-07 22:57:14 +00:00
  • 872f1cec78 Accepting request 990666 from devel:languages:python Richard Brown 2022-07-29 14:46:55 +00:00
  • c3a1af788d Accepting request 990666 from devel:languages:python Richard Brown 2022-07-29 14:46:55 +00:00
  • bd05a5217c - Add patch remove-mock.patch: * Use unittest.mock if available. Steve Kowalik 2022-07-22 11:15:57 +00:00
  • e667c4cd77 - Add patch remove-mock.patch: * Use unittest.mock if available. Steve Kowalik 2022-07-22 11:15:57 +00:00
  • b127118bdc Accepting request 897834 from devel:languages:python Dominique Leuenberger 2021-06-11 20:30:14 +00:00
  • 1b8902463e Accepting request 897834 from devel:languages:python Dominique Leuenberger 2021-06-11 20:30:14 +00:00
  • 302dec0b03 - update to 1.9.3: * Release note for 1.9.3 type annotations * Additional improvements to response matching type stubs * Improve MockerCore type stubs Dirk Mueller 2021-06-06 11:59:08 +00:00
  • 0ab5cdddd8 - update to 1.9.3: * Release note for 1.9.3 type annotations * Additional improvements to response matching type stubs * Improve MockerCore type stubs Dirk Mueller 2021-06-06 11:59:08 +00:00
  • 19b52b3322 Accepting request 894157 from devel:languages:python Dominique Leuenberger 2021-05-20 17:23:22 +00:00
  • 5eedc9cb8d Accepting request 894157 from devel:languages:python Dominique Leuenberger 2021-05-20 17:23:22 +00:00
  • ecc769048c - update to 1.9.2: * Add release note for urlquote fix * Simple tests to ensure character encoding works * Use requests to quote URLs * Remove circleci badge from README * Restore py.typed file to enable types * Change tag pattern * Url Quote the path provided to the mocker * Use github action to push a release to PyPI (#163) * Release note for type hints * Add [PEP 484](https://www.python.org/dev/peps/pep-0484/) type hints * Mocker.copy: Use correct type when copying mocker * Run unit tests for pull requests as well * Add support for Python up to 3.9 * Use Github Actions * Make is\_bound\_method private * Add release note for fixed bug * Correctly handle an explicit zero byte read * Add missing string delimiter in example * fix: is\_bound\_method by six * fix: \session\ and \real\_http\ cannot be used at the same time Dirk Mueller 2021-05-18 21:10:22 +00:00
  • 455d36ad51 - update to 1.9.2: * Add release note for urlquote fix * Simple tests to ensure character encoding works * Use requests to quote URLs * Remove circleci badge from README * Restore py.typed file to enable types * Change tag pattern * Url Quote the path provided to the mocker * Use github action to push a release to PyPI (#163) * Release note for type hints * Add [PEP 484](https://www.python.org/dev/peps/pep-0484/) type hints * Mocker.copy: Use correct type when copying mocker * Run unit tests for pull requests as well * Add support for Python up to 3.9 * Use Github Actions * Make is\_bound\_method private * Add release note for fixed bug * Correctly handle an explicit zero byte read * Add missing string delimiter in example * fix: is\_bound\_method by six * fix: \session\ and \real\_http\ cannot be used at the same time Dirk Mueller 2021-05-18 21:10:22 +00:00
  • 409e1d6025 Accepting request 854252 from devel:languages:python Dominique Leuenberger 2020-12-12 19:29:20 +00:00
  • 5012bdf971 Accepting request 854252 from devel:languages:python Dominique Leuenberger 2020-12-12 19:29:20 +00:00
  • 1247936292 Accepting request 854221 from home:bnavigator:branches:devel:languages:python Markéta Machová 2020-12-09 11:58:26 +00:00
  • 70ffec588b Accepting request 854221 from home:bnavigator:branches:devel:languages:python Markéta Machová 2020-12-09 11:58:26 +00:00
  • a26171ad7c Accepting request 814547 from devel:languages:python Dominique Leuenberger 2020-06-21 16:50:56 +00:00
  • af4e60c5e8 Accepting request 814547 from devel:languages:python Dominique Leuenberger 2020-06-21 16:50:56 +00:00
  • 8e347acd47 - update to 1.8.0: * Remove requests 2.3 compatibility code * Add release notes for reset function * Add release note for session scoped mock * Allow passing session as postiional argument * Create bound method instead of a wrapper * Added reset\_mock to \_RequestHistoryTracker and Adapter (#139) * doc on session Mockers * doc on nesting Mockers * fix README.rst typo * suggest Mocker for users unfamiliar with adapters * update examples to mount adapter on 'mock://' * fix global/session mock interactions and real\_http * Added installation instructions * Add release note for nested mocking * fix redirects (#105) and mock nesting (#116) * Mark IOReader object closed when using a stream * Add the default response reason if not set * Don't check that proxies are set in test * Add StackOverflow tag to README * Mention pytest fixture on the README * Add background information to pytest doc * docs: update examples to match Read the Docs * Expose real\_http as a public property * fix py27 error * easier session scoped mock Dirk Mueller 2020-06-14 09:12:09 +00:00
  • e50629a4dc - update to 1.8.0: * Remove requests 2.3 compatibility code * Add release notes for reset function * Add release note for session scoped mock * Allow passing session as postiional argument * Create bound method instead of a wrapper * Added reset\_mock to \_RequestHistoryTracker and Adapter (#139) * doc on session Mockers * doc on nesting Mockers * fix README.rst typo * suggest Mocker for users unfamiliar with adapters * update examples to mount adapter on 'mock://' * fix global/session mock interactions and real\_http * Added installation instructions * Add release note for nested mocking * fix redirects (#105) and mock nesting (#116) * Mark IOReader object closed when using a stream * Add the default response reason if not set * Don't check that proxies are set in test * Add StackOverflow tag to README * Mention pytest fixture on the README * Add background information to pytest doc * docs: update examples to match Read the Docs * Expose real\_http as a public property * fix py27 error * easier session scoped mock Dirk Mueller 2020-06-14 09:12:09 +00:00
  • 3099620c00 Accepting request 731152 from devel:languages:python Dominique Leuenberger 2019-09-23 10:17:07 +00:00
  • 980056a1ae Accepting request 731152 from devel:languages:python Dominique Leuenberger 2019-09-23 10:17:07 +00:00
  • 9c6c301856 Accepting request 731078 from home:jengelh:branches:devel:languages:python Tomáš Chvátal 2019-09-16 07:32:26 +00:00
  • a9ad7f235b Accepting request 731078 from home:jengelh:branches:devel:languages:python Tomáš Chvátal 2019-09-16 07:32:26 +00:00
  • da1dc4a45a - Update to 1.7.0: * support for purl Tomáš Chvátal 2019-09-10 10:49:45 +00:00
  • b0f2b6f027 - Update to 1.7.0: * support for purl Tomáš Chvátal 2019-09-10 10:49:45 +00:00
  • 1f178437ff Accepting request 708340 from devel:languages:python Dominique Leuenberger 2019-06-13 20:29:54 +00:00
  • 2b3f735a3e Accepting request 708340 from devel:languages:python Dominique Leuenberger 2019-06-13 20:29:54 +00:00
  • 3c9fd22b51 - Update to 1.6.0: * Various fkale8 and tests fixes - Run also pytest tests - Fixup the requirements for testing - Fix fdupes call Tomáš Chvátal 2019-06-07 11:55:11 +00:00
  • 5352e73ac3 - Update to 1.6.0: * Various fkale8 and tests fixes - Run also pytest tests - Fixup the requirements for testing - Fix fdupes call Tomáš Chvátal 2019-06-07 11:55:11 +00:00
  • ec25fd8af6 Accepting request 701328 from devel:languages:python Dominique Leuenberger 2019-05-09 12:27:39 +00:00
  • b943546eae Accepting request 701328 from devel:languages:python Dominique Leuenberger 2019-05-09 12:27:39 +00:00
  • c701d9f6f2 Accepting request 701322 from home:pgajdos Tomáš Chvátal 2019-05-07 13:47:22 +00:00
  • f83bb7d805 Accepting request 701322 from home:pgajdos Tomáš Chvátal 2019-05-07 13:47:22 +00:00
  • a969f74150 Accepting request 682495 from devel:languages:python Dominique Leuenberger 2019-03-12 08:44:52 +00:00
  • 1cba4086ff Accepting request 682495 from devel:languages:python Dominique Leuenberger 2019-03-12 08:44:52 +00:00
  • 0349cb3d07 - update to 0.27.4: - New pygit2.LIBGIT2_VER tuple - New objects now support (in)equality comparison and hash - New references now support (in)equality comparison - New paths optional argument in Repository.checkout() - Fix speed and windows package regression - Fix deprecation warning - Documentation fixes - Add Python classifiers to setup.py - Speeding up tests in Travis - Breaking changes: - Remove deprecated Reference.get_object(), use Reference.peel() instead - Move to pytest, drop support for Python 3.3 and cffi 0.x - New support comparing signatures for (in)equality - New `Submodule.head_id - New Remote.prune(...) - New pygit2.reference_is_valid_name(...) - New AlreadyExistsError and InvalidSpecError - New Reference.raw_name, Reference.raw_shorthand, Tag.raw_name, - Fix decode error in commit messages and signatures - Fix, raise error in Repository.descendant_of(...) if commit doesn't exist - Documentation fixes - Breaking changes: - Remove undocumented Tag._message, replaced by Tag.raw_message - Add support for Python 3.7 - New Object.short_id - New Repository.descendant_of and Repository.branches.with_commit - Fix repository initialization in clone_repository(...)` - Fix several warnings and errors, commits - Documentation fixes and improvements Thomas Bechtold 2019-03-07 15:02:13 +00:00
  • bab801c1d0 - update to 0.27.4: - New pygit2.LIBGIT2_VER tuple - New objects now support (in)equality comparison and hash - New references now support (in)equality comparison - New paths optional argument in Repository.checkout() - Fix speed and windows package regression - Fix deprecation warning - Documentation fixes - Add Python classifiers to setup.py - Speeding up tests in Travis - Breaking changes: - Remove deprecated Reference.get_object(), use Reference.peel() instead - Move to pytest, drop support for Python 3.3 and cffi 0.x - New support comparing signatures for (in)equality - New `Submodule.head_id - New Remote.prune(...) - New pygit2.reference_is_valid_name(...) - New AlreadyExistsError and InvalidSpecError - New Reference.raw_name, Reference.raw_shorthand, Tag.raw_name, - Fix decode error in commit messages and signatures - Fix, raise error in Repository.descendant_of(...) if commit doesn't exist - Documentation fixes - Breaking changes: - Remove undocumented Tag._message, replaced by Tag.raw_message - Add support for Python 3.7 - New Object.short_id - New Repository.descendant_of and Repository.branches.with_commit - Fix repository initialization in clone_repository(...)` - Fix several warnings and errors, commits - Documentation fixes and improvements Thomas Bechtold 2019-03-07 15:02:13 +00:00
  • e9af681790 Accepting request 659646 from devel:languages:python Dominique Leuenberger 2018-12-26 23:28:24 +00:00
  • bf40a1a5d7 Accepting request 659646 from devel:languages:python Dominique Leuenberger 2018-12-26 23:28:24 +00:00
  • c742703d5b Clean up the SPEC file Matej Cepl 2018-12-04 17:21:24 +00:00
  • b2223cd0af Clean up the SPEC file Matej Cepl 2018-12-04 17:21:24 +00:00
  • a2780e4859 Remove superfluous devel dependency for noarch package Matej Cepl 2018-12-04 13:59:54 +00:00
  • b5537ca975 Remove superfluous devel dependency for noarch package Matej Cepl 2018-12-04 13:59:54 +00:00
  • fa3140f8c1 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=26 Todd R 2018-11-08 17:34:22 +00:00
  • afeacf9f26 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=26 Todd R 2018-11-08 17:34:22 +00:00
  • e49592d98d OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=25 Todd R 2018-11-08 17:34:15 +00:00
  • 1c40cad2cf OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=25 Todd R 2018-11-08 17:34:15 +00:00
  • a66aa67629 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=24 Todd R 2018-11-08 17:34:09 +00:00
  • ce034b2cfe OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=24 Todd R 2018-11-08 17:34:09 +00:00
  • 068f8f57e0 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=23 Todd R 2018-11-08 17:27:48 +00:00
  • 9e2e08cf6f OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=23 Todd R 2018-11-08 17:27:48 +00:00
  • 3bb1ea93e7 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=22 Todd R 2018-11-08 17:24:40 +00:00
  • a23eddf2e3 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=22 Todd R 2018-11-08 17:24:40 +00:00
  • 51faf978e8 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=21 Todd R 2018-11-08 17:23:27 +00:00
  • 10607f1f45 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=21 Todd R 2018-11-08 17:23:27 +00:00
  • cf916c0d07 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=20 Todd R 2018-11-08 17:22:47 +00:00
  • 9d5596d4b2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=20 Todd R 2018-11-08 17:22:47 +00:00
  • 02d5387066 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=19 Todd R 2018-11-08 17:22:24 +00:00
  • 2228b61dd4 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=19 Todd R 2018-11-08 17:22:24 +00:00
  • ce9adfac22 Accepting request 579522 from devel:languages:python Dominique Leuenberger 2018-02-26 22:24:37 +00:00
  • 17115122e9 Accepting request 579522 from devel:languages:python Dominique Leuenberger 2018-02-26 22:24:37 +00:00
  • 999f5d0196 - update to 1.4.0: * allow an adapter to be passed to a Mocker object * Rename [wheel] section to [bdist\_wheel] as the former is legacy * Include license file in the generated wheel package * Add testing for newer Python versions 3.5 and 3.6 * Return a separate copy for each call to decorator * Add string representation to \_RequestObjectProxy Thomas Bechtold 2018-02-23 13:54:29 +00:00
  • 597cb24793 - update to 1.4.0: * allow an adapter to be passed to a Mocker object * Rename [wheel] section to [bdist\_wheel] as the former is legacy * Include license file in the generated wheel package * Add testing for newer Python versions 3.5 and 3.6 * Return a separate copy for each call to decorator * Add string representation to \_RequestObjectProxy Thomas Bechtold 2018-02-23 13:54:29 +00:00
  • 65b043a5f5 Accepting request 505524 from devel:languages:python Dominique Leuenberger 2017-06-22 08:40:42 +00:00
  • 8ef43d01a2 Accepting request 505524 from devel:languages:python Dominique Leuenberger 2017-06-22 08:40:42 +00:00
  • c01ec2a74a - fix build for SLE12 Dirk Mueller 2017-06-14 16:37:25 +00:00
  • 9bf28f5cf0 - fix build for SLE12 Dirk Mueller 2017-06-14 16:37:25 +00:00