Skip to content

Commit

Permalink
chore: fix unit tests (specific to siibra 0.1a6)
Browse files Browse the repository at this point in the history
  • Loading branch information
xgui3783 committed Jul 18, 2021
1 parent e2d2985 commit b038bbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions test/test_parcellation_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
def test_get_all_parcellations():
response = client.get(
'/v1_0/atlases/{}/parcellations'.format(ATLAS_ID.replace('/', '%2F')),
headers={"Authorization": "Bearer token"}
)
result_content = json.loads(response.content)
assert response.status_code == 200
Expand All @@ -42,7 +41,7 @@ def test_get_one_parcellation_by_id():
assert result_content['name'] == 'Julich-Brain Cytoarchitectonic Maps 2.5'
assert result_content['version'] == {
'name': '2.5',
'next': 'minds/core/parcellationatlas/v1.0.0/94c1125b-b87e-45e4-901c-00daee7f2579-273',
'next': 'minds/core/parcellationatlas/v1.0.0/94c1125b-b87e-45e4-901c-00daee7f2579-290',
'prev': 'minds/core/parcellationatlas/v1.0.0/94c1125b-b87e-45e4-901c-00daee7f2579'
}

Expand Down
2 changes: 1 addition & 1 deletion test/test_space_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_get_all_spaces():
response = client.get('/v1_0/atlases/{}/spaces'.format(ATLAS_ID.replace('/', '%2F')))
result_content = json.loads(response.content)
assert response.status_code == 200
assert len(result_content) == 3
assert len(result_content) == 4


def test_get_one_space():
Expand Down

0 comments on commit b038bbe

Please sign in to comment.