Bug 252187 - [NEW PORT] devel/py-pytest-httpbin: Easily test your HTTP library against a local copy of httpbin.org
Summary: [NEW PORT] devel/py-pytest-httpbin: Easily test your HTTP library against a l...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Ruslan Makhmatkhanov
Keywords: patch
Depends on: 251847
Blocks: 250941
  Show dependency treegraph
Reported: 2020-12-27 06:31 UTC by Charlie Li
Modified: 2021-02-24 10:03 UTC (History)
2 users (show)

See Also:

v1 (1.48 KB, patch)
2020-12-27 06:31 UTC, Charlie Li
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Charlie Li freebsd_committer 2020-12-27 06:31:33 UTC
Created attachment 220979 [details]

This creates a pytest fixture for a local httpbin instance. Needed to run the test suite for devel/py-requests.

No tests are included here in the pypi distribution, but are present on the github source.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2021-02-16 02:00:06 UTC
Hey @Ruslan I have a port ready to commit for this as part of a py-request update (for QA)
Comment 2 Ruslan Makhmatkhanov freebsd_committer 2021-02-16 05:03:17 UTC
(In reply to Kubilay Kocak from comment #1)
Hi Kubilay, please commit, if you do. I have a problem with poudriere jail after updating my system to 14, so can't test it right now.
Comment 3 commit-hook freebsd_committer 2021-02-24 09:55:53 UTC
A commit references this bug:

Author: rm
Date: Wed Feb 24 09:55:46 UTC 2021
New revision: 566462
URL: https://svnweb.freebsd.org/changeset/ports/566462

  Pytest-httpbin creates a pytest fixture that is dependency-injected
  into your tests. It automatically starts up a HTTP server in a
  separate thread running httpbin and provides your test with the URL
  in the fixture.

  WWW: https://github.com/kevin1024/pytest-httpbin

  PR:		252187
  Submitted by:	python@FreeBSD.org

Comment 4 Ruslan Makhmatkhanov freebsd_committer 2021-02-24 10:03:02 UTC
New port added, thank you!