Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
n00rsy committed May 9, 2024
1 parent ef1a3d2 commit 6fa91b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/test_view/test_project_answer_field_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_get_config(self):
url = '/project/%s/answerfieldsconfig?api_key=%s' % (project.short_name, project.owner.api_key)
res = self.app.get(url)
assert '<fields-config' in str(res.data), res.data
assert '<consensus-config' in str(res.data), res.data
assert '<redundancy-config' in str(res.data), res.data

@with_context
def test_post_answer_field_config(self):
Expand Down
5 changes: 3 additions & 2 deletions test/test_view/test_project_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def test_get_config(self):
assert 'ownership-setting' in str(res.data), res.data
assert 'task-setting' in str(res.data), res.data
assert 'fields-config' in str(res.data), res.data
assert 'consensus-config' in str(res.data), res.data
assert 'redundancy-config' in str(res.data), res.data
assert 'consensus-setting' in str(res.data), res.data
assert 'quiz-setting' in str(res.data), res.data

@with_context
Expand Down Expand Up @@ -77,4 +78,4 @@ def test_invalid_post(self):
data={},
headers={'X-CSRFToken': csrf})
data = json.loads(res.data)
assert data['flash'] == 'An error occurred.'
assert data['flash'] == 'An error occurred.'

0 comments on commit 6fa91b1

Please sign in to comment.