Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Statistical-Genetics
jass
Commits
187de44c
Commit
187de44c
authored
Jul 09, 2021
by
Hervé Ménager
Browse files
fix unit tests according to API URLs modifications
parent
e8b74465
Changes
1
Hide whitespace changes
Inline
Side-by-side
jass/test/test_server.py
View file @
187de44c
...
...
@@ -19,7 +19,7 @@ class TestDefaultController(JassFlaskTestCase):
"""
Test case retrieving available phenotypes
"""
response
=
self
.
testing_client
.
open
(
"/api/phenotypes
/
"
,
method
=
"GET"
)
response
=
self
.
testing_client
.
open
(
"/api/phenotypes"
,
method
=
"GET"
)
self
.
assert200
(
response
,
"Response body is : "
+
response
.
data
.
decode
(
"utf-8"
))
def
test_create_project
(
self
):
...
...
@@ -27,7 +27,7 @@ class TestDefaultController(JassFlaskTestCase):
Test case for creating a project
"""
response
=
self
.
testing_client
.
open
(
"/api/projects
/
"
,
"/api/projects"
,
method
=
"POST"
,
data
=
{
"phenotypeID"
:
"z_IHEC_MONOP,z_RA_RA"
},
)
...
...
Write
Preview
Supports
Markdown
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