File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -299,8 +299,8 @@ def create(self, **kwargs):
299
299
** new_kwargs ,
300
300
)
301
301
302
- class ProjectHistoryLog (AuditLog ):
303
302
303
+ class ProjectHistoryLog (AuditLog ):
304
304
objects = ProjectHistoryLogManager ()
305
305
306
306
class Meta :
Original file line number Diff line number Diff line change @@ -513,7 +513,8 @@ def test_create_from_related_request_object_modified(self):
513
513
request .user = User .objects .get (username = 'someuser' )
514
514
request .resolver_match = Mock ()
515
515
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
517
518
request .initial_data = {
518
519
'object_id' : 1 ,
519
520
'field_1' : 'a' ,
Original file line number Diff line number Diff line change @@ -524,7 +524,8 @@ def test_connect_project_creates_log(self):
524
524
'enabled' : True ,
525
525
'fields' : [],
526
526
}
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
528
529
source .owner = self .asset .owner
529
530
source .save ()
530
531
asset_url = drf_reverse ('api_v2:asset-detail' , kwargs = {'uid' : source .uid })
@@ -551,7 +552,8 @@ def test_disconnect_project_creates_log(self):
551
552
'enabled' : True ,
552
553
'fields' : [],
553
554
}
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
555
557
source .owner = self .asset .owner
556
558
source .save ()
557
559
paired_data = PairedData (
@@ -582,7 +584,8 @@ def test_modify_imported_fields_creates_log(self):
582
584
'enabled' : True ,
583
585
'fields' : [],
584
586
}
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
586
589
source .owner = self .asset .owner
587
590
source .save ()
588
591
paired_data = PairedData (
You can’t perform that action at this time.
0 commit comments