Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankApiyo committed Oct 9, 2024
1 parent aa02f9c commit c75f57a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions onadata/apps/api/tests/viewsets/test_project_viewset.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ def test_projects_list(self):
self.project.date_modified.isoformat().replace("+00:00", "Z"),
),
("deleted_at", None),
("data_views", []),
]
)
]
Expand Down
1 change: 1 addition & 0 deletions onadata/libs/serializers/project_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ def get_published_by_formbuilder(self, obj):
return metadata and hasattr(metadata, "data_value") and metadata.data_value


# pylint: disable=abstract-method
class DataViewsProjectSerializerMixin(serializers.Serializer):
data_views = serializers.SerializerMethodField()

Expand Down

0 comments on commit c75f57a

Please sign in to comment.