Skip to content

Commit

Permalink
✅ Fix contributions test views
Browse files Browse the repository at this point in the history
  • Loading branch information
LePetitTim committed Jul 25, 2023
1 parent 2701f84 commit bf1faac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion georiviere/contribution/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class ContributionViewTestCase(CommonRiverTest):
def get_expected_json_attrs(self):
return {
'id': self.obj.pk,
'assigned_user': self.obj.assigned_user,
'name_author': self.obj.name_author,
'email_author': self.obj.email_author,
'description': self.obj.description,
Expand All @@ -21,7 +22,8 @@ def get_expected_json_attrs(self):
'severity': self.obj.severity,
'geom': self.obj.geom.ewkt,
'portal': self.obj.portal.pk,
'published': False
'published': False,
'status_contribution': self.obj.status_contribution
}

def get_good_data(self):
Expand Down

0 comments on commit bf1faac

Please sign in to comment.