Bug 242806

Summary: [NEW PORT] devel/py-pytest-factoryboy: Factory approach to testing with the dependency injection
Product: Ports & Packages Reporter: Goran Mekić <meka>
Component: Individual Port(s)Assignee: Ben Woods <woodsb02>
Status: Closed FIXED    
Severity: Affects Only Me CC: koobs, woodsb02
Priority: --- Keywords: patch, patch-ready
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on: 242805    
Bug Blocks: 242817    
Attachments:
Description Flags
py-pytest-factoryboy.diff none

Description Goran Mekić 2019-12-22 16:29:03 UTC
Created attachment 210145 [details]
py-pytest-factoryboy.diff

QA:

  * portlint: OK (looks fine.)
  * testport: OK (poudriere: 12.0, amd64 tested)
  * maketest: OK (20 passed, 2 skipped tests)
Comment 1 Ben Woods freebsd_committer freebsd_triage 2019-12-24 08:15:43 UTC
Note that this is not required if using GitHub (I will remove it):
MASTER_SITES=	CHEESESHOP
Comment 2 Ben Woods freebsd_committer freebsd_triage 2019-12-24 08:18:14 UTC
This is not required, as it is the default (I will remove it):
GH_TAGNAME=	${PORTVERSION}
Comment 3 Ben Woods freebsd_committer freebsd_triage 2019-12-24 08:22:15 UTC
I will rename this dependency to match the new package name in the ports tree: 
-		${PYTHON_PKGNAMEPREFIX}factory_boy>=0:devel/py-factory-boy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}factory-boy>=0:devel/py-factory-boy@${PY_FLAVOR} \
Comment 4 Ben Woods freebsd_committer freebsd_triage 2019-12-24 08:25:39 UTC
The lines below are required to fix "make test" (I will add them):
TEST_DEPENDS=   ${PYTHON_PKGNAMEPREFIX}dateutil>=0:devel/py-dateutil@${PY_FLAVOR} \
                ${PYTHON_PKGNAMEPREFIX}text-unidecode>=0:converters/py-text-unidecode@${PY_FLAVOR}
Comment 5 commit-hook freebsd_committer freebsd_triage 2019-12-24 08:27:36 UTC
A commit references this bug:

Author: woodsb02
Date: Tue Dec 24 08:27:28 UTC 2019
New revision: 520787
URL: https://svnweb.freebsd.org/changeset/ports/520787

Log:
  Add new port devel/py-pytest-factoryboy

  Pytest-factoryboy makes it easy to combine factory approach to the test setup
  with the dependency injection, heart of the pytest fixtures.

  WWW: https://github.com/pytest-dev/pytest-factoryboy

  PR:		242806
  Submitted by:	Goran Meki? <meka@tilda.center>

Changes:
  head/devel/Makefile
  head/devel/py-pytest-factoryboy/
  head/devel/py-pytest-factoryboy/Makefile
  head/devel/py-pytest-factoryboy/distinfo
  head/devel/py-pytest-factoryboy/pkg-descr
Comment 6 Ben Woods freebsd_committer freebsd_triage 2019-12-24 08:28:26 UTC
Committed - thanks!