From fb5dee9fd921612666e990161e08001ede25fb66 Mon Sep 17 00:00:00 2001 From: Sebastian Quintero Date: Tue, 26 Nov 2024 10:07:19 -0500 Subject: [PATCH] Debug test --- tests/test_entrypoint/test_entrypoint.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_entrypoint/test_entrypoint.py b/tests/test_entrypoint/test_entrypoint.py index 0924eca..5ce5025 100644 --- a/tests/test_entrypoint/test_entrypoint.py +++ b/tests/test_entrypoint/test_entrypoint.py @@ -60,8 +60,14 @@ def test_entrypoint(self): input_data = json.load(f) input_stream = json.dumps(input_data) + print(input_stream) main_file = self._file_name("main.py", self.TWO_DIRS_UP) + if os.path.exists(main_file): + print(f"main.py exists at {main_file}") + if os.path.getsize(main_file) == 0: + self.fail(f"{main_file} is empty.") + args = [sys.executable, main_file] result = subprocess.run( args,