]> arthur.barton.de Git - bup.git/commit
tests: partially convert to pytest
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 28 May 2020 20:05:45 +0000 (22:05 +0200)
committerRob Browning <rlb@defaultvalue.org>
Thu, 26 Nov 2020 21:53:09 +0000 (15:53 -0600)
commit51369249eb13f732a07368defbd27b06cb0ed5e3
treeef79d7b7fcdd953027818cb27772acf10d3e95f7
parent96da3f0142c8f41fc379db4e4e31df2426d466b5
tests: partially convert to pytest

Convert all the python-based library unit tests to pytest,
and add a pytest.ini to only look in the test/ directory.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
[rlb@defaultvalue.org: run pytest outside wvtest check wrapper so the
 output is visible; restore some of buptest.py and wvtest.py so the
 other tests can still run; rename pytest shim to wvpytest to
 distinguish from ./wvtest.py.; add ./pytest to centralize common
 options; switch .wvtest import to wvtest now that lib/test is a proper
 module dir; narrow pytest.ini test dirs to test/int and test/ext; move
 sort-z to test/bin; fix some dependencies in dev/prep-for-*]
28 files changed:
HACKING
Makefile
conftest.py
dev/prep-for-debianish-build
dev/prep-for-freebsd-build
dev/prep-for-macos-build
pytest [new file with mode: 0755]
pytest.ini [new file with mode: 0644]
test/bin/sort-z [new symlink]
test/ext/bin/sort-z [deleted symlink]
test/ext/test-meta.sh
test/int/__init__.py
test/int/test_bloom.py
test/int/test_client.py
test/int/test_git.py
test/int/test_hashsplit.py
test/int/test_helpers.py
test/int/test_index.py
test/int/test_metadata.py
test/int/test_options.py
test/int/test_resolve.py
test/int/test_shquote.py
test/int/test_vfs.py
test/int/test_vint.py
test/int/test_xstat.py
test/lib/__init__.py [new file with mode: 0644]
test/lib/buptest/__init__.py
test/lib/wvpytest.py [new file with mode: 0644]