Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Magdalena Noffke committed Aug 19, 2016
1 parent ad08586 commit 09e47c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/reports/test_report_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_anonymous_user_can_not_view_reportlist(apiclient):


@pytest.mark.django_db
def test_authenticated_user_can_report(apiclient, user):
def test_authenticated_user_can_not_report_invalid_data(apiclient, user):
apiclient.force_authenticate(user=user)
url = reverse('reports-list')
data = {}
Expand Down Expand Up @@ -52,7 +52,7 @@ def test_authenticated_user_can_post(apiclient, user, comment, admin):
assert response.status_code == status.HTTP_200_OK
assert response.data['description'] == 'This comment sucks'
assert len(mail.outbox) == 2
assert 'A resource of type \'Comment\' has been reported' in mail.outbox[
assert 'A Comment has been reported' in mail.outbox[
0].subject
assert 'A Comment that you created' in mail.outbox[
1].subject

0 comments on commit 09e47c4

Please sign in to comment.