Skip to content
Snippets Groups Projects
Commit 45b96dbe authored by Stuart Prescott's avatar Stuart Prescott
Browse files

Use pybuild.testsfiles for test suite

parent eea76568
No related branches found
No related tags found
No related merge requests found
......@@ -5,10 +5,6 @@ Priority: optional
Build-Depends:
debhelper-compat (= 12),
dh-python,
python-all (>= 2.6.6-3),
python-nose,
python-sentinels,
python-setuptools (>= 0.6b3),
python3-all,
python3-nose,
python3-sentinels,
......@@ -18,18 +14,6 @@ Homepage: https://github.com/vmalloc/pyforge
Vcs-Git: https://salsa.debian.org/debian/python-pyforge.git
Vcs-Browser: https://salsa.debian.org/debian/python-pyforge
Package: python-forge
Architecture: all
Depends:
${misc:Depends},
${python:Depends}
Description: mocking and testing modules (Python 2 version)
Forge is a mocking library for Python. It draws most of its inspiration
from Mox. It aims to be simple, but still feature-rich, and provide maximum
flexibility for unit testing using the mock approach.
.
This package contains the Python 2 version of the forge module.
Package: python3-forge
Architecture: all
Depends:
......
tests
README.rst
......@@ -3,8 +3,6 @@
export PYBUILD_NAME = forge
export PYBUILD_TEST_NOSE = 1
export PYBUILD_BEFORE_TEST = cp -a {dir}/tests README.rst {build_dir}
export PYBUILD_AFTER_TEST = rm {build_dir}/README.rst
%:
dh $@ --with python2,python3 --buildsystem=pybuild
dh $@ --with python3 --buildsystem=pybuild
Tests: python-forge
Depends:
python-nose,
python-forge,
Tests: python3-forge
Depends:
python3-all,
......
#!/bin/sh
set -e -u
cp -a README.rst tests/ "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP/tests/"
export PYTHONWARNINGS=d
for py in $(pyversions -i); do
$py -m nose -v 2>&1
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment