Skip to content

Commit 6876a0d

Browse files
author
Lingling Peng
committed
update test
1 parent f4677c1 commit 6876a0d

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

tests/integration/synapseclient/models/async/test_grid_async.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ async def test_import_csv_to_grid_session_async(
188188
self,
189189
project_model,
190190
record_set_fixture: RecordSet,
191-
schedule_for_cleanup: Callable[..., None],
192191
) -> None:
193192
"""Test importing a CSV file into a grid session."""
194193

@@ -220,7 +219,7 @@ async def test_import_csv_to_grid_session_async(
220219
path=temp_csv.name, parent_id=project_model.id
221220
).store_async(synapse_client=self.syn)
222221

223-
schedule_for_cleanup(file.id)
222+
self.schedule_for_cleanup(file.id)
224223

225224
# WHEN: Importing the CSV into the grid session
226225
imported_grid = await created_grid.import_csv_async(

tests/unit/synapseclient/models/async/unit_test_curation_async.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -862,15 +862,11 @@ async def test_import_csv_async(self) -> None:
862862
updated_count=1,
863863
)
864864

865-
# Set up mock preview class: constructor returns a mock whose
866-
# send_job_and_wait_async returns the mock_preview_response
867865
mock_preview_instance = MagicMock()
868866
mock_preview_instance.send_job_and_wait_async = AsyncMock(
869867
return_value=mock_preview_response
870868
)
871869

872-
# Set up mock import class: constructor returns a mock whose
873-
# send_job_and_wait_async returns the mock_import_response
874870
mock_import_instance = MagicMock()
875871
mock_import_instance.send_job_and_wait_async = AsyncMock(
876872
return_value=mock_import_response

0 commit comments

Comments
 (0)