Skip to content

Commit c0f18e5

Browse files
authored
Merge pull request #658 from JosueNina/fix-test-projects-crud-recycle-bin
Fix projects CRUD regression test
2 parents 686a57f + 1f5ffca commit c0f18e5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/components/api/test_clients.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ def test_projects_crud() -> None:
137137
project_client.delete(created_project.projectId)
138138

139139
# Test the project is really deleted
140-
projects = project_client.get_all(None)
140+
# The API soft deletes projects (moves them to "Recycle Bin/..."), so exclude those
141+
projects = [p for p in project_client.get_all(None) if not p.name.startswith("Recycle Bin/")]
141142
assert not any([p.projectId == created_project.projectId for p in projects])
142143

143144

0 commit comments

Comments
 (0)