Skip to content

Commit 36b87ee

Browse files
committed
fixup!: flake
1 parent 29b5eb9 commit 36b87ee

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

kobo/apps/audit_log/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@ def create(self, **kwargs):
299299
**new_kwargs,
300300
)
301301

302-
class ProjectHistoryLog(AuditLog):
303302

303+
class ProjectHistoryLog(AuditLog):
304304
objects = ProjectHistoryLogManager()
305305

306306
class Meta:

kobo/apps/audit_log/tests/test_models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,8 @@ def test_create_from_related_request_object_modified(self):
513513
request.user = User.objects.get(username='someuser')
514514
request.resolver_match = Mock()
515515
request.resolver_match.kwargs = {'parent_lookup_asset': 'a12345'}
516-
# if an object has been modified, both `initial_data` and `updated_data` should be filled
516+
# if an object has been modified, both `initial_data`
517+
# and `updated_data` should be filled
517518
request.initial_data = {
518519
'object_id': 1,
519520
'field_1': 'a',

kobo/apps/audit_log/tests/test_project_history_logs.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,8 @@ def test_connect_project_creates_log(self):
524524
'enabled': True,
525525
'fields': [],
526526
}
527-
# set the owner to be the same on the source so we don't have a permissions issue
527+
# set the owner to be the same on the source
528+
# so we don't have a permissions issue
528529
source.owner = self.asset.owner
529530
source.save()
530531
asset_url = drf_reverse('api_v2:asset-detail', kwargs={'uid': source.uid})
@@ -551,7 +552,8 @@ def test_disconnect_project_creates_log(self):
551552
'enabled': True,
552553
'fields': [],
553554
}
554-
# set the owner to be the same on the source so we don't have a permissions issue
555+
# set the owner to be the same on the source
556+
# so we don't have a permissions issue
555557
source.owner = self.asset.owner
556558
source.save()
557559
paired_data = PairedData(
@@ -582,7 +584,8 @@ def test_modify_imported_fields_creates_log(self):
582584
'enabled': True,
583585
'fields': [],
584586
}
585-
# set the owner to be the same on the source so we don't have a permissions issue
587+
# set the owner to be the same on the source
588+
# so we don't have a permissions issue
586589
source.owner = self.asset.owner
587590
source.save()
588591
paired_data = PairedData(

0 commit comments

Comments
 (0)