Skip to content

Commit a679998

Browse files
committed
Remove integration tests and clean up CI
1 parent 9567368 commit a679998

11 files changed

Lines changed: 24 additions & 460 deletions

File tree

.github/workflows/workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ jobs:
4545

4646
- uses: astral-sh/setup-uv@v5
4747

48-
- name: Install lint dependencies
49-
run: uv sync --group lint
48+
- name: Install lint and test dependencies
49+
run: uv sync --group lint --group test
5050

5151
- name: Run Ty
5252
run: uv run ty check

alembic/versions/2026_01_24_2012-97f7686bdccd_create_entities_table.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Create Date: 2026-01-24 20:12:27.427802+00:00
66
77
"""
8+
89
from collections.abc import Sequence
910

1011
import sqlalchemy as sa
@@ -19,13 +20,18 @@
1920

2021
def upgrade() -> None:
2122
# ### commands auto generated by Alembic - please adjust! ###
22-
op.create_table("entities",
23-
sa.Column("name", sa.String(length=255), nullable=False),
24-
sa.Column("description", sa.Text(), nullable=True),
25-
sa.Column("created_at", sa.DateTime(), server_default=sa.text("now()"), nullable=False),
26-
sa.Column("updated_at", sa.DateTime(), server_default=sa.text("now()"), nullable=False),
27-
sa.Column("id", sa.UUID(), nullable=False),
28-
sa.PrimaryKeyConstraint("id", name=op.f("pk_entities"))
23+
op.create_table(
24+
"entities",
25+
sa.Column("name", sa.String(length=255), nullable=False),
26+
sa.Column("description", sa.Text(), nullable=True),
27+
sa.Column(
28+
"created_at", sa.DateTime(), server_default=sa.text("now()"), nullable=False
29+
),
30+
sa.Column(
31+
"updated_at", sa.DateTime(), server_default=sa.text("now()"), nullable=False
32+
),
33+
sa.Column("id", sa.UUID(), nullable=False),
34+
sa.PrimaryKeyConstraint("id", name=op.f("pk_entities")),
2935
)
3036
# ### end Alembic commands ###
3137

app/repository/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ async def update(self, entity: ModelType) -> ModelType:
7272

7373
async def exists_by_id(self, entity_id: UUID) -> bool:
7474
result: Result[tuple[int]] = await self.session.execute(
75-
select(func.count()).select_from(self.model).where(self.model.id == entity_id)
75+
select(func.count())
76+
.select_from(self.model)
77+
.where(self.model.id == entity_id)
7678
)
7779
return result.scalar_one() > 0
7880

app/routes/entity.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ async def list_entities(
4040

4141
@route.put("/{entity_id}")
4242
async def update_entity(
43-
entity_id: UUID, data: EntityUpdate, service: Annotated[EntityService, Depends(get_entity_service)]
43+
entity_id: UUID,
44+
data: EntityUpdate,
45+
service: Annotated[EntityService, Depends(get_entity_service)],
4446
) -> EntityResponse:
4547
entity = await service.update(entity_id, data)
4648
if entity is None:

app/routes/health.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@
99

1010

1111
@route.get("/health/db")
12-
async def health_db(_session: Annotated[AsyncSession, Depends(get_session)]) -> dict[str, str]:
12+
async def health_db(
13+
_session: Annotated[AsyncSession, Depends(get_session)],
14+
) -> dict[str, str]:
1315
return {"status": "healthy"}

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ test = [
2323
"pytest>=8.0.0",
2424
"pytest-asyncio>=0.24.0",
2525
"httpx>=0.28.0",
26-
"testcontainers[postgres]>=4.0.0",
2726
"aiosqlite>=0.21.0",
2827
"pytest-cov>=6.0.0",
2928
]
@@ -52,6 +51,5 @@ asyncio_mode = "auto"
5251
asyncio_default_fixture_loop_scope = "function"
5352
markers = [
5453
"unit: fast, no external deps",
55-
"integration: requires Docker",
5654
]
5755
addopts = "-v --strict-markers"

tests/integration/__init__.py

Whitespace-only changes.

tests/integration/conftest.py

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

tests/integration/test_entity.py

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

tests/integration/test_health.py

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

0 commit comments

Comments
 (0)