Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.pad.face
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.face
Commits
788bf6e5
Commit
788bf6e5
authored
7 years ago
by
Olegs NIKISINS
Browse files
Options
Downloads
Patches
Plain Diff
Fixed the replay-attack nosetest
parent
be39b8ee
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!12
Added anomaly detection algos and unseen attack protocols for aggregated database
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/pad/face/test/test_databases.py
+3
-3
3 additions, 3 deletions
bob/pad/face/test/test_databases.py
with
3 additions
and
3 deletions
bob/pad/face/test/test_databases.py
+
3
−
3
View file @
788bf6e5
...
...
@@ -7,9 +7,9 @@ from nose.plugins.skip import SkipTest
import
bob.bio.base
from
bob.bio.base.test.utils
import
db_available
@db_available
(
'
replay
'
)
@db_available
(
'
replay
'
)
# the name of the package
def
test_replay
():
replay_database_instance
=
bob
.
bio
.
base
.
load_resource
(
'
replay
'
,
'
database
'
,
preferred_package
=
'
bob.pad.face
'
,
package_prefix
=
'
bob.pad.
'
)
replay_database_instance
=
bob
.
bio
.
base
.
load_resource
(
'
replay
-attack
'
,
'
database
'
,
preferred_package
=
'
bob.pad.face
'
,
package_prefix
=
'
bob.pad.
'
)
# replay-attack is the name of the configuration file
try
:
assert
len
(
replay_database_instance
.
objects
(
groups
=
[
'
train
'
,
'
dev
'
,
'
eval
'
])
)
==
1200
...
...
@@ -41,7 +41,7 @@ def test_replaymobile():
"
The database could not be queried; probably the db.sql3 file is missing. Here is the error:
'
%s
'"
%
e
)
@db_available
(
'
msu_mfsd_mod
'
)
# the name of the package defining low-level interface of MSU MFSD
@db_available
(
'
msu_mfsd_mod
'
)
def
test_msu_mfsd
():
msu_mfsd
=
bob
.
bio
.
base
.
load_resource
(
'
msu-mfsd
'
,
'
database
'
,
preferred_package
=
'
bob.pad.face
'
,
package_prefix
=
'
bob.pad.
'
)
try
:
...
...
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