Skip to content

Commit

Permalink
Debug test
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-quintero committed Nov 26, 2024
1 parent d03c3fa commit fb5dee9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_entrypoint/test_entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fb5dee9

Please sign in to comment.