Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-muchiri committed Apr 12, 2024
1 parent 1681dbe commit 07666a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion onadata/apps/main/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,8 @@ def _publish_markdown(self, md_xlsform, user, project=None, **kwargs):

if not project or not hasattr(self, "project"):
project = get_user_default_project(user)
self.project = project

self.project = project
data_dict = DataDictionary(
created_by=user,
user=user,
Expand Down
1 change: 1 addition & 0 deletions onadata/libs/tests/models/test_share_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def test_share(self, mock_safe_delete, mock_propagate):
"""
instance = ShareProject(self.project, self.alice, "manager")
instance.save()
self.alice.refresh_from_db()
self.assertTrue(ManagerRole.user_has_role(self.alice, self.project))
self.assertTrue(ManagerRole.user_has_role(self.alice, self.xform))
self.assertTrue(ManagerRole.user_has_role(self.alice, self.dataview_form))
Expand Down

0 comments on commit 07666a2

Please sign in to comment.