./www/py-requests-mock [mock out responses from py-requests]
[+] Add this package to your ports tracker

[ CVSweb ] [ Homepage ] [ RSS feed ]

Version: 1.5.2, Package name: py-requests-mock-1.5.2
Maintained by: Brian Callahan
Master sites:
Flavors (export FLAVOR=xyz, setenv FLAVOR xyz):
  • python3
Description
The requests library has the concept of pluggable transport adapters.
These adapters allow you to register your own handlers for different
URIs or protocols.

The requests-mock library at its core is simply a transport adapter that
can be preloaded with responses that are returned if certain URIs are
requested. This is particularly useful in unit tests where you want to
return known responses from HTTP requests without making actual calls.

As the requests library has very limited options for how to load and use
adapters requests-mock also provides a number of ways to make sure the
mock adapter is used. These are only loading mechanisms, they do not
contain any logic and can be used as a reference to load the adapter in
whatever ways works best for your project.


Filesize: 46.466 KB
Version History (View Complete History)
  • (2018-07-23) Updated to version: py-requests-mock-1.5.2
  • (2018-05-11) Updated to version: py-requests-mock-1.5.0
  • (2018-02-25) Package added to openports.se, version py-requests-mock-1.4.0 (created)
[show/hide] View available PLISTS (Can be a lot of data)

CVS Commit History:

   2020-07-03 15:13:23 by Stuart Henderson | Files touched by this commit (1032)
Log message:
bump REVISION; python 3 default changed to 3.8
   2019-07-12 14:51:31 by Stuart Henderson | Files touched by this commit (859)
Log message:
replace simple PERMIT_PACKAGE_CDROM=Yes with PERMIT_PACKAGE=Yes
   2019-05-15 06:04:43 by Kurt Mosiejczuk | Files touched by this commit (167)
Log message:
Add RUN_DEPENDS to TEST_DEPENDS automatically for ports using the
lang/python port module. I've not yet come up with a port that
would not need this and one can always set MODPY_TESTDEP to "no"
to prevent the module from touching TEST_DEPENDS.
Idea from afresh1 who pointed out the cpan module already does this.
aja "I support this move."
OK sthen@
   2019-04-28 14:52:03 by Stuart Henderson | Files touched by this commit (715)
Log message:
bump all the py3 things, _SYSTEM_VERSION didn't quite work out how
we expected and it's easier|safer to do it this way than fiddle with
pkg_add now. thanks aja for update tests with a quick bulk.
   2018-07-22 21:44:48 by Brian Callahan | Files touched by this commit (3)
Log message:
Update to py-requests-mock-1.5.2
   2018-05-10 21:45:55 by Brian Callahan | Files touched by this commit (3)
Log message:
Update to py-requests-mock-1.5.0
   2018-02-27 06:16:58 by Stuart Henderson | Files touched by this commit (1)
Log message:
unbreak; add missing BUILD_DEPENDS on py-pbr
   2018-02-27 06:16:01 by Marc Espie | Files touched by this commit (1)
Log message:
there's a reason we checksum distfiles contents.
ports shouldn't be allowed to download *whatever* during build