Skip to content

Commit

Permalink
No name analysis is OK in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adelavega committed Oct 19, 2020
1 parent 36a5177 commit 763ed88
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions neuroscout/tests/api/test_analyses.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,14 @@ def test_post(auth_client, add_task, add_predictor):
assert decode_json(resp)['message']['json']['dataset_id'][0] == \
'Invalid dataset id.'

no_name_OK = {
"dataset_id": dataset_id,
"description": "pretty damn innovative"
}

resp = auth_client.post('/api/analyses', data=no_name_OK)
assert resp.status_code == 200


def test_clone(session, auth_client, add_task, add_analysis, add_users):
(id1, id2), _ = add_users
Expand Down

0 comments on commit 763ed88

Please sign in to comment.