MCPcopy Create free account
hub / github.com/AgentOps-AI/agentops / test_get_project

Function test_get_project

app/api/tests/opsboard/views/test_projects.py:60–72  ·  view source on GitHub ↗

Test getting a specific project by ID.

(mock_request, orm_session, test_project)

Source from the content-addressed store, hash-verified

58
59@pytest.mark.asyncio
60async 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

Callers

nothing calls this directly

Calls 1

get_projectFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…