@@ -311,17 +311,17 @@ def test_write_session_associated_object_structure_created(example_database: Dat
311311 assert example_database .get_runs_filename (example_subject .id , session .id ).is_file ()
312312
313313def test_write_session_with_invalid_photoscan_id (example_database : Database , example_subject : Subject , example_transducer_tracking_result ):
314- """ Test that when there is a transducer tracking result class associated with a session, the session
315- is correctly written to file ."""
314+ """ Test that when you write a session with a transducer tracking result associated with an
315+ invalid photoscan, an error is raised ."""
316316 session = Session (name = "bleh" , id = 'a_session' ,subject_id = example_subject .id )
317317 session .transducer_tracking_results = [example_transducer_tracking_result ]
318318 example_transducer_tracking_result .photoscan_id = "bogus_photoscan"
319319 with pytest .raises (ValueError , match = "been associated with this session" ):
320320 example_database .write_session (example_subject , session )
321321
322322def test_write_session_with_transducer_tracking_results (example_database : Database , example_subject : Subject , example_transducer_tracking_result ):
323- """ Test that when you write a session with a transducer tracking result associated with an
324- invalid photoscan, an error is raised ."""
323+ """ Test that when there is a transducer tracking result class associated with a session, the session
324+ is correctly written to file ."""
325325 session = Session (name = "bleh" , id = 'example_session' ,subject_id = example_subject .id )
326326 session .transducer_tracking_results = [example_transducer_tracking_result ]
327327 example_database .write_session (example_subject , session , on_conflict = OnConflictOpts .OVERWRITE )
0 commit comments