Test getting a specific project by ID.
(mock_request, orm_session, test_project)
| 58 | |
| 59 | @pytest.mark.asyncio |
| 60 | async def test_get_project(mock_request, orm_session, test_project): |
| 61 | """Test getting a specific project by ID.""" |
| 62 | # Call the endpoint function |
| 63 | result = get_project(request=mock_request, project_id=str(test_project.id), orm=orm_session) |
| 64 | |
| 65 | # Verify the project data matches |
| 66 | assert result.id == str(test_project.id) |
| 67 | assert result.name == test_project.name |
| 68 | assert result.environment == test_project.environment.value |
| 69 | assert result.api_key == str(test_project.api_key) |
| 70 | assert result.org_id == str(test_project.org_id) |
| 71 | assert result.org.id == str(test_project.org.id) |
| 72 | assert result.org.name == test_project.org.name |
| 73 | |
| 74 | |
| 75 | @pytest.mark.asyncio |
nothing calls this directly
no test coverage detected
searching dependent graphs…