test: add agent test coverage and standardize test suite (#2051)

- Add 104 comprehensive tests for agent system
- Integrate agent tests into CI/CD pipeline
- Standardize tests with @pytest.mark.unit markers
- Fix cross-platform path compatibility
- Clean up unused imports and dependencies
This commit is contained in:
Siddhant Rai authored and GitHub committed 2025-10-13 14:43:35 +03:00
1 parent 1805292528
commit d6c49bdbf0
24 files changed
+2775 -501

No files matched your search

+4 -1
View File
@@ -1,6 +1,6 @@
import pytest
from openapi_parser import parse
from application.parser.file.openapi3_parser import OpenAPI3Parser
from openapi_parser import parse
@pytest.mark.parametrize(
@@ -17,10 +17,12 @@ from application.parser.file.openapi3_parser import OpenAPI3Parser
),
],
)
@pytest.mark.unit
def test_get_base_urls(urls, expected_base_urls):
assert OpenAPI3Parser().get_base_urls(urls) == expected_base_urls
@pytest.mark.unit
def test_get_info_from_paths():
file_path = "tests/test_openapi3.yaml"
data = parse(file_path)
@@ -31,6 +33,7 @@ def test_get_info_from_paths():
)
@pytest.mark.unit
def test_parse_file():
file_path = "tests/test_openapi3.yaml"
results_expected = (