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
No related branches found
No related tags found
1 merge request!104Use pytest instead of nose.
Pipeline #63723 passed
import h5py
import nose
import numpy as np
from bob.io.base.test_utils import datafile
......@@ -77,10 +76,10 @@ def test_per_pai_apcer():
ref_thresholds = _read_dict(f, "thresholds")
ref_metrics = _read_dict(f, "metrics")
nose.tools.assert_list_equal(pos, ref_pos)
nose.tools.assert_dict_equal(negs, ref_negs)
nose.tools.assert_dict_equal(thresholds, ref_thresholds)
nose.tools.assert_dict_equal(metrics, ref_metrics)
assert pos == ref_pos
assert negs == ref_negs
assert thresholds == ref_thresholds
assert metrics == ref_metrics
def test_csv_split():
......
......@@ -55,13 +55,14 @@ test:
- {{ name }}
commands:
- 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 -aEb doctest {{ project_dir }}/doc sphinx
- conda inspect linkages -p $PREFIX {{ name }} # [not win]
- conda inspect objects -p $PREFIX {{ name }} # [osx]
requires:
- nose {{ nose }}
- pytest {{ pytest }}
- pytest-cov {{ pytest_cov }}
- coverage {{ coverage }}
- sphinx {{ sphinx }}
- 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