@@ -132,14 +132,16 @@ class TestObjectRef:
132132
133133 def test_from_json_string (self ):
134134 """Test creating ObjectRef from JSON string."""
135- json_str = json .dumps ({
136- "path" : "schema/Table/objects/id=1/data_abc123.dat" ,
137- "size" : 1024 ,
138- "hash" : None ,
139- "ext" : ".dat" ,
140- "is_dir" : False ,
141- "timestamp" : "2025-01-15T10:30:00+00:00" ,
142- })
135+ json_str = json .dumps (
136+ {
137+ "path" : "schema/Table/objects/id=1/data_abc123.dat" ,
138+ "size" : 1024 ,
139+ "hash" : None ,
140+ "ext" : ".dat" ,
141+ "is_dir" : False ,
142+ "timestamp" : "2025-01-15T10:30:00+00:00" ,
143+ }
144+ )
143145 obj = ObjectRef .from_json (json_str )
144146 assert obj .path == "schema/Table/objects/id=1/data_abc123.dat"
145147 assert obj .size == 1024
@@ -581,11 +583,13 @@ def test_multiple_objects(self, schema_obj, mock_object_storage, tmpdir_factory)
581583 processed_file = Path (source_folder , "processed.dat" )
582584 processed_file .write_bytes (os .urandom (200 ))
583585
584- table .insert1 ({
585- "record_id" : 1 ,
586- "raw_data" : str (raw_file ),
587- "processed" : str (processed_file ),
588- })
586+ table .insert1 (
587+ {
588+ "record_id" : 1 ,
589+ "raw_data" : str (raw_file ),
590+ "processed" : str (processed_file ),
591+ }
592+ )
589593
590594 record = table .fetch1 ()
591595 raw_obj = record ["raw_data" ]
@@ -609,13 +613,15 @@ def test_object_with_other(self, schema_obj, mock_object_storage, tmpdir_factory
609613 test_file = Path (source_folder , "data.bin" )
610614 test_file .write_bytes (os .urandom (64 ))
611615
612- table .insert1 ({
613- "subject_id" : 1 ,
614- "session_id" : 1 ,
615- "name" : "Test Session" ,
616- "data_file" : str (test_file ),
617- "notes" : "Some notes here" ,
618- })
616+ table .insert1 (
617+ {
618+ "subject_id" : 1 ,
619+ "session_id" : 1 ,
620+ "name" : "Test Session" ,
621+ "data_file" : str (test_file ),
622+ "notes" : "Some notes here" ,
623+ }
624+ )
619625
620626 record = table .fetch1 ()
621627 assert record ["name" ] == "Test Session"
0 commit comments