gajim: fix tests

`test` directory actually also contains various libraries and broken
tests. Test failure happens when `test/lib/gajim_mocks.py` is attempted
to run as a test.

Upstream only runs no_gui tests:
e0f58cfc78/.gajim-ci.yml (L18)

We now explicitly run only tests from `no_gui` and `unit`.
This commit is contained in:
Nikolay Amiantov 2022-01-05 00:45:33 +03:00
parent 78cd22c1b8
commit c138c66dcb

View File

@ -59,7 +59,8 @@ python3.pkgs.buildPythonApplication rec {
checkPhase = ''
xvfb-run dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
${python3.interpreter} setup.py test
${python3.interpreter} -m unittest discover -s test/unit -v
${python3.interpreter} -m unittest discover -s test/no_gui -v
'';
# necessary for wrapGAppsHook