aider: Refactor unit tests to run using docker python3.8 and mount only the file being run.

# Context:
USER: run the unit tests using docker python3.8 mounting just the file being run
This commit is contained in:
Paul Gauthier 2023-06-26 20:18:03 -07:00
parent 4d3c77332f
commit d13ff918de

View file

@ -353,7 +353,7 @@ def run_unit_tests(testdir, history_fname):
dump(test_file)
try:
result = subprocess.run(
["python", test_file],
["docker", "run", "--rm", "-v", f"{test_file}:/app/{test_file.name}", "python:3.8", "python", f"/app/{test_file.name}"],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
text=True,