Skip to content

Commit

Permalink
fixup!: flake
Browse files Browse the repository at this point in the history
  • Loading branch information
rgraber committed Nov 4, 2024
1 parent 29b5eb9 commit 36b87ee
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion kobo/apps/audit_log/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ def create(self, **kwargs):
**new_kwargs,
)

class ProjectHistoryLog(AuditLog):

class ProjectHistoryLog(AuditLog):
objects = ProjectHistoryLogManager()

class Meta:
Expand Down
3 changes: 2 additions & 1 deletion kobo/apps/audit_log/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,8 @@ def test_create_from_related_request_object_modified(self):
request.user = User.objects.get(username='someuser')
request.resolver_match = Mock()
request.resolver_match.kwargs = {'parent_lookup_asset': 'a12345'}
# if an object has been modified, both `initial_data` and `updated_data` should be filled
# if an object has been modified, both `initial_data`
# and `updated_data` should be filled
request.initial_data = {
'object_id': 1,
'field_1': 'a',
Expand Down
9 changes: 6 additions & 3 deletions kobo/apps/audit_log/tests/test_project_history_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,8 @@ def test_connect_project_creates_log(self):
'enabled': True,
'fields': [],
}
# set the owner to be the same on the source so we don't have a permissions issue
# set the owner to be the same on the source
# so we don't have a permissions issue
source.owner = self.asset.owner
source.save()
asset_url = drf_reverse('api_v2:asset-detail', kwargs={'uid': source.uid})
Expand All @@ -551,7 +552,8 @@ def test_disconnect_project_creates_log(self):
'enabled': True,
'fields': [],
}
# set the owner to be the same on the source so we don't have a permissions issue
# set the owner to be the same on the source
# so we don't have a permissions issue
source.owner = self.asset.owner
source.save()
paired_data = PairedData(
Expand Down Expand Up @@ -582,7 +584,8 @@ def test_modify_imported_fields_creates_log(self):
'enabled': True,
'fields': [],
}
# set the owner to be the same on the source so we don't have a permissions issue
# set the owner to be the same on the source
# so we don't have a permissions issue
source.owner = self.asset.owner
source.save()
paired_data = PairedData(
Expand Down

0 comments on commit 36b87ee

Please sign in to comment.