Skip to content
Snippets Groups Projects
Commit 06b76c83 authored by Flavio TARSETTI's avatar Flavio TARSETTI
Browse files

Merge branch 'pytest' into 'master'

Use pytest instead of nose.

See merge request !104
parents 10c21485 f501771a
Branches
Tags
1 merge request!104Use pytest instead of nose.
Pipeline #63723 passed
import h5py import h5py
import nose
import numpy as np import numpy as np
from bob.io.base.test_utils import datafile from bob.io.base.test_utils import datafile
...@@ -77,10 +76,10 @@ def test_per_pai_apcer(): ...@@ -77,10 +76,10 @@ def test_per_pai_apcer():
ref_thresholds = _read_dict(f, "thresholds") ref_thresholds = _read_dict(f, "thresholds")
ref_metrics = _read_dict(f, "metrics") ref_metrics = _read_dict(f, "metrics")
nose.tools.assert_list_equal(pos, ref_pos) assert pos == ref_pos
nose.tools.assert_dict_equal(negs, ref_negs) assert negs == ref_negs
nose.tools.assert_dict_equal(thresholds, ref_thresholds) assert thresholds == ref_thresholds
nose.tools.assert_dict_equal(metrics, ref_metrics) assert metrics == ref_metrics
def test_csv_split(): def test_csv_split():
......
...@@ -55,13 +55,14 @@ test: ...@@ -55,13 +55,14 @@ test:
- {{ name }} - {{ name }}
commands: commands:
- bob pad --help - bob pad --help
- nosetests --with-coverage --cover-package={{ name }} -sv {{ name }} - pytest --verbose --cov {{ name }} --cov-report term-missing --cov-report html:{{ project_dir }}/sphinx/coverage --cov-report xml:{{ project_dir }}/coverage.xml --pyargs {{ name }}
- sphinx-build -aEW {{ project_dir }}/doc {{ project_dir }}/sphinx - sphinx-build -aEW {{ project_dir }}/doc {{ project_dir }}/sphinx
- sphinx-build -aEb doctest {{ project_dir }}/doc sphinx - sphinx-build -aEb doctest {{ project_dir }}/doc sphinx
- conda inspect linkages -p $PREFIX {{ name }} # [not win] - conda inspect linkages -p $PREFIX {{ name }} # [not win]
- conda inspect objects -p $PREFIX {{ name }} # [osx] - conda inspect objects -p $PREFIX {{ name }} # [osx]
requires: requires:
- nose {{ nose }} - pytest {{ pytest }}
- pytest-cov {{ pytest_cov }}
- coverage {{ coverage }} - coverage {{ coverage }}
- sphinx {{ sphinx }} - sphinx {{ sphinx }}
- sphinx_rtd_theme {{ sphinx_rtd_theme }} - sphinx_rtd_theme {{ sphinx_rtd_theme }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment