From 6c3b1eabb42334e080ccb2fe1335f3c3cffa313f Mon Sep 17 00:00:00 2001 From: David Abramov Date: Thu, 22 Aug 2024 13:42:28 -0700 Subject: [PATCH] removing test_832.py because test_globus.py does the same thing and more --- orchestration/_tests/test_832.py | 37 -------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 orchestration/_tests/test_832.py diff --git a/orchestration/_tests/test_832.py b/orchestration/_tests/test_832.py deleted file mode 100644 index a5562cb..0000000 --- a/orchestration/_tests/test_832.py +++ /dev/null @@ -1,37 +0,0 @@ -from unittest.mock import MagicMock, patch -from uuid import uuid4 - -import time - -from globus_sdk import TransferData - - -class MockTransferClient: - transfer_data: TransferData - - move_to_data832_was_called = False - move_to_nersc_was_called = False - - def submit_transfer(self, transfer_data: TransferData): - self.transfer_data = transfer_data - return {"task_id": "12345"} - - def get_submission_id(self): - return {"value": "42"} - - def task_wait(self, task_id, polling_interval=1, timeout=1): - time.sleep(polling_interval) - return True - - def get_task(self, task_id): - return {"task_id": task_id, "status": "SUCCEEDED"} - - -# def test_parameters(monkeypatch): -# import orchestration.flows.bl832.config -# monkeypatch.setattr("orchestration.flows.bl832.config", MockTransferClient()) -# transfer_client = MockTransferClient() -# process_new_832_file("foo/bar.h5") - - -# assert result