[pkg] Run all unit tests in autopkgtest
We previously forgot to copy `tox.ini` alongside the tests. As this
file configures pytest pattern matching rules, we were not running
quite a few tests. This is now fixed.
The added tests required some adjustments in the Debian dependencies.
Sadly, not all tests currently pass. It seems there are some ordering
dependencies between the tests in regards to how data are loaded.
Fixing this probably would probably be better debugged by ensuring
the test suite does not fail when using pytest random-order plugin.
Tests: unittest
Depends:
python3-cubicweb, cubicweb-ctl,
@builddeps@,
python3-pytest,
python3-flake8,
python3-psycopg2, postgresql, postgresql-plpython,
python3-ldap3, slapd, ldap-utils
Restrictions: allow-stderr, isolation-container