Not tested yet

This commit is contained in:
corrado.mulas
2026-05-08 00:03:06 +02:00
parent 0e7b9ef4c1
commit 9c714af9c0
35 changed files with 2948 additions and 0 deletions

30
run_tests.py Normal file
View File

@@ -0,0 +1,30 @@
#!/usr/bin/env python3
"""
Test runner for the telegram-groupfactory application.
"""
import subprocess
import sys
def run_tests():
"""Run tests using pytest."""
try:
# Run pytest with verbose output
result = subprocess.run([
sys.executable, '-m', 'pytest',
'-v',
'--tb=short',
'test_main.py'
], check=True, capture_output=True, text=True)
print("Tests passed successfully!")
print(result.stdout)
return True
except subprocess.CalledProcessError as e:
print("Tests failed!")
print("STDOUT:", e.stdout)
print("STDERR:", e.stderr)
return False
if __name__ == '__main__':
success = run_tests()
sys.exit(0 if success else 1)