Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
r4victor committed Jan 21, 2025
1 parent 3c85f8a commit 9bbf73b
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/tests/_internal/server/background/tasks/test_process_fleets.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,6 @@ async def test_deletes_terminating_user_fleet(self, test_db, session: AsyncSessi
await session.refresh(fleet)
assert fleet.deleted

@pytest.mark.asyncio
@pytest.mark.parametrize("test_db", ["sqlite", "postgres"], indirect=True)
async def test_does_not_delete_non_terminating_empty_user_fleets(
self, test_db, session: AsyncSession
):
project = await create_project(session)
spec = get_fleet_spec()
spec.autocreated = False
fleet = await create_fleet(
session=session,
project=project,
status=FleetStatus.ACTIVE,
)
await process_fleets()
await session.refresh(fleet)
assert not fleet.deleted

@pytest.mark.asyncio
@pytest.mark.parametrize("test_db", ["sqlite", "postgres"], indirect=True)
async def test_does_not_delete_fleet_with_active_run(self, test_db, session: AsyncSession):
Expand Down

0 comments on commit 9bbf73b

Please sign in to comment.