This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tests/test_main_mock.py | |
import pytest | |
from unittest.mock import AsyncMock, patch | |
from app.api_client import fetch_data_from_vendor | |
@pytest.mark.asyncio | |
async def test_fetch_data_with_mock(): | |
mock_data = {"hello": "vendor"} |