1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

[NEW] devel/py-pretend: Library for stubbing in Python

Pretend is a library to make stubbing with Python easier.

What is stubbing?

Stubbing is a technique for writing tests. You may hear the term mixed
up with mocks, fakes, or doubles. Basically a stub is an object that
returns pre-canned responses, rather than doing any computation.

WWW: https://github.com/alex/pretend
This commit is contained in:
Kubilay Kocak 2015-06-02 09:58:10 +00:00
parent dca0df99ed
commit 0cb9bf7f9f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=388315
4 changed files with 36 additions and 0 deletions

View File

@ -4004,6 +4004,7 @@
SUBDIR += py-posix_ipc
SUBDIR += py-pp
SUBDIR += py-pqueue
SUBDIR += py-pretend
SUBDIR += py-prettytable
SUBDIR += py-prioritized_methods
SUBDIR += py-prompt_toolkit

24
devel/py-pretend/Makefile Normal file
View File

@ -0,0 +1,24 @@
# Created by: Kubilay Kocak <koobs@FreeBSD.org>
# $FreeBSD$
PORTNAME= pretend
PORTVERSION= 1.0.8
DISTVERSIONPREFIX= v
CATEGORIES= devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= koobs@FreeBSD.org
COMMENT= Library for stubbing in Python
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.rst
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest
USES= python
USE_PYTHON= autoplist distutils
USE_GITHUB= yes
GH_ACCOUNT= alex
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (alex-pretend-v1.0.8_GH0.tar.gz) = ba52bf8e6b3cda7319a70a3257476cedca7ba10c0cd142aff4935227f4f74142
SIZE (alex-pretend-v1.0.8_GH0.tar.gz) = 5509

View File

@ -0,0 +1,9 @@
Pretend is a library to make stubbing with Python easier.
What is stubbing?
Stubbing is a technique for writing tests. You may hear the term mixed
up with mocks, fakes, or doubles. Basically a stub is an object that
returns pre-canned responses, rather than doing any computation.
WWW: https://github.com/alex/pretend