Skip to content

Commit

Permalink
[#3742] Fix flaky test when logging project changes
Browse files Browse the repository at this point in the history
  • Loading branch information
punchagan committed Sep 27, 2019
1 parent 8370809 commit 9a6f12c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions akvo/rsr/tests/rest/test_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,18 @@

import json

from akvo.codelists.models import ResultType, Version
from akvo.rsr.tests.base import BaseTestCase


class RestResultTestCase(BaseTestCase):
"""Test the result REST endpoints."""

def setUp(self):
super(RestResultTestCase, self).setUp()
iati_version, _ = Version.objects.get_or_create(code='2.02')
ResultType.objects.get_or_create(code="1", name="Output", version=iati_version)

def test_result_post(self):
user = self.create_user("user@akvo.org", "password", is_admin=True)
project = self.create_project("Test project")
Expand Down

0 comments on commit 9a6f12c

Please # to comment.