Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Andrea Lorenzon
H5nuvola2
Commits
8d3744fd
Commit
8d3744fd
authored
Aug 05, 2021
by
Andrea Lorenzon
💬
Browse files
fixed test units
parent
837c500e
Pipeline
#1572
failed with stages
in 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test_app.py
View file @
8d3744fd
import
unittest
from
app
import
app
class
test_extraction
(
unittest
.
TestCase
):
...
...
@@ -18,9 +17,10 @@ class test_extraction(unittest.TestCase):
self
.
assertEqual
(
str
(
type
(
ds
)),
"<class 'numpy.ndarray'>"
)
self
.
assertEqual
(
str
(
type
(
ds1
)),
"<class 'numpy.ndarray'>"
)
self
.
assertEqual
(
arr
.
shape
,
(
1000
,
1000
))
self
.
assertEqual
(
arr
.
shape
,
(
1000
,
1000
))
self
.
assertEqual
(
arr1
.
shape
,
(
2
,
600
,
600
))
class
test_plotting
(
unittest
.
TestCase
):
def
test_plot
(
self
):
from
modules.h5ceric
import
extract_dataset
,
plot_dispatcher
...
...
@@ -33,6 +33,7 @@ class test_plotting(unittest.TestCase):
self
.
assertEqual
(
str
(
type
(
ds
)),
"<class 'numpy.ndarray'>"
)
self
.
assertEqual
(
str
(
type
(
p
)),
"<class 'bokeh.plotting.figure.Figure'>"
)
# test missing file case
class
test_Assertions
(
unittest
.
TestCase
):
def
test_filenoutfound
(
self
):
...
...
@@ -45,4 +46,3 @@ class test_Assertions(unittest.TestCase):
if
__name__
==
'__main__'
:
unittest
.
main
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment