Skip to content

Commit

Permalink
edit args test #3
Browse files Browse the repository at this point in the history
  • Loading branch information
MauroDruwel committed May 18, 2023
1 parent 5fe08db commit 98826b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/test_execute_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def python_test_file(config: Config, random_string):
@pytest.fixture
def python_test_file_args(config: Config):
temp_file = tempfile.NamedTemporaryFile(dir=config.workspace_path, suffix=".py")
temp_file.write(str.encode(f"import sys\nprint(sys.argv[1], sys.argv[2])"))
temp_file.write(str.encode(f"import sys\nprint(len(sys.argv))\nprint(str(sys.argv))\nprint(sys.argv[1], sys.argv[2])"))
temp_file.flush()

yield temp_file.name
Expand Down

0 comments on commit 98826b1

Please sign in to comment.