Skip to content

Commit e65ee3d

Browse files
committed
More dep/mypy updates
1 parent 09f47ad commit e65ee3d

File tree

4 files changed

+1
-11
lines changed

4 files changed

+1
-11
lines changed

.github/workflows/app-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123
key: mypy${{ matrix.os }}-${{ matrix.python_version }}-${{ hashFiles('requirements-dev.txt', 'src/backend/requirements.txt', 'src/backend/pyproject.toml') }}
124124

125125
- name: Run MyPy
126-
run: python3 -m mypy .
126+
run: python3 -m mypy . --python-version ${{ matrix.python_version }}
127127

128128
- name: Run Pytest
129129
run: python3 -m pytest -s -vv --cov --cov-fail-under=85

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ lint.isort.known-first-party = ["fastapi_app"]
77

88
[tool.mypy]
99
check_untyped_defs = true
10-
python_version = 3.9
1110
exclude = [".venv/*"]
1211

1312
[tool.pytest.ini_options]

requirements-dev.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@ pytest-snapshot
1414
locust
1515
psycopg2
1616
dotenv-azd
17-
freezegun

tests/conftest.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import pytest
99
import pytest_asyncio
1010
from fastapi.testclient import TestClient
11-
from freezegun import freeze_time
1211
from openai.types import CreateEmbeddingResponse, Embedding
1312
from openai.types.chat import ChatCompletion, ChatCompletionChunk
1413
from openai.types.chat.chat_completion import (
@@ -336,13 +335,6 @@ async def mock_acreate(*args, **kwargs):
336335
yield
337336

338337

339-
@pytest.fixture(autouse=True)
340-
def frozen_time():
341-
"""Freeze time for all tests to ensure consistent timestamps"""
342-
with freeze_time("2024-01-01 12:00:00"):
343-
yield
344-
345-
346338
@pytest.fixture(scope="function")
347339
def mock_azure_credential(mock_session_env):
348340
"""Mock the Azure credential for testing."""

0 commit comments

Comments
 (0)