Skip to content

Commit fa543c1

Browse files
author
Rafael Uzarowski
committed
File Tree: Fixed other tests to make full test suite functional
1 parent c2b7728 commit fa543c1

File tree

5 files changed

+9
-342
lines changed

5 files changed

+9
-342
lines changed

tests/chunk_parser_test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
ex2 = "<think>reasoning goes here</thi"
88

99

10+
import pytest
11+
12+
13+
@pytest.mark.parametrize("example", [ex1, ex2])
1014
def test_example(example: str):
1115
res = models.ChatGenerationResult()
1216
for i in range(len(example)):
@@ -20,4 +24,3 @@ def test_example(example: str):
2024
if __name__ == "__main__":
2125
# test_example(ex1)
2226
test_example(ex2)
23-

tests/email_parser_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
44

55
import asyncio
6+
import pytest
67
from python.helpers.email_client import read_messages
78
from python.helpers.dotenv import get_dotenv_value, load_dotenv
89

910

11+
@pytest.mark.skip(reason="This test is disabled as it has eternal dependencies and tests nothing automatically, please move it to a script or a manual test")
12+
@pytest.mark.asyncio
1013
async def test():
1114
load_dotenv()
1215
messages = await read_messages(

tests/test_fasta2a_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99

1010
import asyncio
11+
import pytest
1112
from python.helpers import settings
1213

1314

@@ -143,6 +144,7 @@ def validate_token_format():
143144
return False
144145

145146

147+
@pytest.mark.asyncio
146148
async def test_server_connectivity():
147149
"""Test basic server connectivity."""
148150
try:
-760 KB
Binary file not shown.

tests/test_file_tree_visualize.short.txt

Lines changed: 0 additions & 341 deletions
This file was deleted.

0 commit comments

Comments
 (0)