Enable tests using MODPY_PYTEST. Patch out the handful of tests that
need the unported delegator.py
This commit is contained in:
parent
92dbe205b0
commit
c8cce38167
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2019/06/15 12:13:04 robert Exp $
|
||||
# $OpenBSD: Makefile,v 1.2 2019/12/02 21:45:27 kmos Exp $
|
||||
|
||||
COMMENT = convert numbers to words
|
||||
|
||||
@ -20,5 +20,8 @@ FLAVOR ?=
|
||||
|
||||
MODPY_PI = Yes
|
||||
MODPY_SETUPTOOLS = Yes
|
||||
MODPY_PYTEST = Yes
|
||||
|
||||
TEST_DEPENDS = devel/py-docopt${MODPY_FLAVOR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
13
converters/py-num2words/patches/patch-setup_py
Normal file
13
converters/py-num2words/patches/patch-setup_py
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-setup_py,v 1.1 2019/12/02 21:45:27 kmos Exp $
|
||||
|
||||
delegator isn't ported and we've patched out those tests
|
||||
|
||||
Index: setup.py
|
||||
--- setup.py.orig
|
||||
+++ setup.py
|
||||
@@ -75,5 +75,4 @@ setup(
|
||||
classifiers=CLASSIFIERS,
|
||||
scripts=['bin/num2words'],
|
||||
install_requires=["docopt>=0.6.2"],
|
||||
- tests_require=['delegator.py'],
|
||||
)
|
22
converters/py-num2words/patches/patch-tests_test_cli_py
Normal file
22
converters/py-num2words/patches/patch-tests_test_cli_py
Normal file
@ -0,0 +1,22 @@
|
||||
$OpenBSD: patch-tests_test_cli_py,v 1.1 2019/12/02 21:45:27 kmos Exp $
|
||||
|
||||
Delegator not imported yet, so skip these tests
|
||||
|
||||
Index: tests/test_cli.py
|
||||
--- tests/test_cli.py.orig
|
||||
+++ tests/test_cli.py
|
||||
@@ -20,11 +20,13 @@ from __future__ import unicode_literals
|
||||
|
||||
import os
|
||||
import unittest
|
||||
+import pytest
|
||||
|
||||
+pytest.skip("delegator not ported to OpenBSD yet", allow_module_level=True)
|
||||
+
|
||||
import delegator
|
||||
|
||||
import num2words
|
||||
-
|
||||
|
||||
class CliCaller(object):
|
||||
|
Loading…
Reference in New Issue
Block a user