Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MLAir
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
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
esde
machine-learning
MLAir
Commits
7742fb56
Commit
7742fb56
authored
5 years ago
by
lukas leufen
Browse files
Options
Downloads
Plain Diff
add an additional test fkt to check if ecorrect error is raised
#68
/close
#68
See merge request toar/machinelearningtools!60
parents
c11e6bcb
f2253185
No related branches found
No related tags found
2 merge requests
!60
add an additional test fkt to check if ecorrect error is raised #68
,
!59
Develop
Pipeline
#31276
passed
5 years ago
Stage: test
Stage: pages
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test_model_modules/test_keras_extensions.py
+7
-0
7 additions, 0 deletions
test/test_model_modules/test_keras_extensions.py
with
7 additions
and
0 deletions
test/test_model_modules/test_keras_extensions.py
+
7
−
0
View file @
7742fb56
...
@@ -179,6 +179,13 @@ class TestCallbackHandler:
...
@@ -179,6 +179,13 @@ class TestCallbackHandler:
{
"
name
"
:
"
other_clbk
"
,
"
other_clbk
"
:
"
callback_other
"
,
{
"
name
"
:
"
other_clbk
"
,
"
other_clbk
"
:
"
callback_other
"
,
"
path
"
:
"
otherpath
"
}]
"
path
"
:
"
otherpath
"
}]
def
test_add_callback_raise
(
self
,
clbk_handler
):
clbk_handler
.
editable
=
False
with
pytest
.
raises
(
PermissionError
)
as
einfo
:
clbk_handler
.
add_callback
(
"
callback_new_instance
"
,
"
this_path
"
)
assert
'
CallbackHandler is protected and cannot be edited.
'
in
str
(
einfo
.
value
)
def
test_get_callbacks_as_dict
(
self
,
clbk_handler_with_dummies
):
def
test_get_callbacks_as_dict
(
self
,
clbk_handler_with_dummies
):
clbk
=
clbk_handler_with_dummies
clbk
=
clbk_handler_with_dummies
assert
clbk
.
get_callbacks
()
==
[{
"
callback
"
:
"
callback_new_instance
"
,
"
path
"
:
"
this_path
"
},
assert
clbk
.
get_callbacks
()
==
[{
"
callback
"
:
"
callback_new_instance
"
,
"
path
"
:
"
this_path
"
},
...
...
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