Bug 252187

Summary: [NEW PORT] devel/py-pytest-httpbin: Easily test your HTTP library against a local copy of httpbin.org
Product: Ports & Packages Reporter: Charlie Li <ml+freebsd>
Component: Individual Port(s)Assignee: Ruslan Makhmatkhanov <rm>
Status: Closed FIXED    
Severity: Affects Some People CC: python, rm
Priority: --- Keywords: patch
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on: 251847    
Bug Blocks: 250941    
Attachments:
Description Flags
v1 none

Description Charlie Li 2020-12-27 06:31:33 UTC
Created attachment 220979 [details]
v1

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

Log:
  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

Changes:
  head/devel/Makefile
  head/devel/py-pytest-httpbin/
  head/devel/py-pytest-httpbin/Makefile
  head/devel/py-pytest-httpbin/distinfo
  head/devel/py-pytest-httpbin/pkg-descr
Comment 4 Ruslan Makhmatkhanov freebsd_committer 2021-02-24 10:03:02 UTC
New port added, thank you!