Spaces:
No application file
No application file
| import subprocess | |
| def run_tests(): | |
| result = subprocess.run( | |
| ["pytest"], | |
| capture_output=True, | |
| text=True | |
| ) | |
| return result.returncode, result.stdout + result.stderr | |
| import subprocess | |
| def run_tests(): | |
| result = subprocess.run( | |
| ["pytest"], | |
| capture_output=True, | |
| text=True | |
| ) | |
| return result.returncode, result.stdout + result.stderr | |