Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.pad.base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.pad.base
Commits
06b76c83
Commit
06b76c83
authored
2 years ago
by
Flavio TARSETTI
Browse files
Options
Downloads
Plain Diff
Merge branch 'pytest' into 'master'
Use pytest instead of nose. See merge request
!104
parents
10c21485
f501771a
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!104
Use pytest instead of nose.
Pipeline
#63723
passed
2 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/pad/base/test/test_error_utils.py
+4
-5
4 additions, 5 deletions
bob/pad/base/test/test_error_utils.py
conda/meta.yaml
+3
-2
3 additions, 2 deletions
conda/meta.yaml
with
7 additions
and
7 deletions
bob/pad/base/test/test_error_utils.py
+
4
−
5
View file @
06b76c83
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
():
...
...
This diff is collapsed.
Click to expand it.
conda/meta.yaml
+
3
−
2
View file @
06b76c83
...
@@ -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 }}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment