We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18c1521 commit d1887f3Copy full SHA for d1887f3
1 file changed
tests/test_tts.py
@@ -6,13 +6,9 @@
6
project_root = Path(__file__).parent.parent
7
sys.path.insert(0, str(project_root))
8
9
-try:
10
- from a4f_local import A4F
11
-except ImportError:
12
- print("ERROR: Could not import A4F. Make sure the package is installed or run from the project root.")
13
- sys.exit(1)
+from a4f_local import A4F
14
15
-def test_simple_tts():
+def tts():
16
"""Runs a simple TTS test compatible with pytest."""
17
try:
18
client = A4F()
@@ -41,4 +37,5 @@ def test_simple_tts():
41
37
print(f"FAILED: An error occurred during the test: {e}")
42
38
raise # Re-raise exception for pytest to capture failure
43
39
44
-# No need for __main__ block when using pytest
40
+# if __name__ == "__main__":
+# tts()
0 commit comments