From f261bc357db10c7a4cc8d2a1c9d2997098e7efd1 Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Sat, 21 Oct 2023 00:05:39 -0700 Subject: [PATCH] entrypoint fixed --- tests/unit/cli/test_entrypoint.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/unit/cli/test_entrypoint.py b/tests/unit/cli/test_entrypoint.py index 8a298f3b..b242d069 100644 --- a/tests/unit/cli/test_entrypoint.py +++ b/tests/unit/cli/test_entrypoint.py @@ -43,13 +43,16 @@ def mock_subscription_download_factory(): time.sleep(1) if not mock_success_output: raise ValueError("error") - return ( - FileHandlerTransactionLog() + + ( + self._enhanced_download_archive.get_file_handler_transaction_log() .log_created_file("created_file.txt", FileMetadata()) .log_modified_file("modified_file.txt", FileMetadata()) .log_removed_file("deleted_file.txt") ) + return self._enhanced_download_archive.get_file_handler_transaction_log() + return _mock_download return _mock_subscription_download_factory @@ -228,8 +231,8 @@ def test_transaction_log_to_file( str(transaction_log_file_path), ], ): - transaction_logs = main() - assert transaction_logs + subscriptions = main() + assert subscriptions with open(transaction_log_file_path, "r", encoding="utf-8") as transaction_log_file: assert transaction_log_file.readlines()[0] == "Transaction log for john_smith:\n"