MCPcopy
hub / github.com/photonixapp/photonix / test_get_photo

Method test_get_photo

tests/test_graphql.py:79–91  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

77 # TODO: Test to make sure the user is actually logged in here - userId etc. should be set
78
79 def test_get_photo(self):
80 # self.api_client.set_user(self.defaults['user'])
81 query = """
82 query PhotoQuery($id: UUID) {
83 photo(id: $id) {
84 url
85 }
86 }
87 """
88 response = self.api_client.post_graphql(query, {'id': str(self.defaults['snow_photo'].id)})
89 assert response.status_code == 200
90 data = get_graphql_content(response)
91 assert data['data']['photo']['url'].startswith('/thumbnails')
92
93 def test_get_photos(self):
94 # self.api_client.set_user(self.defaults['user'])

Callers

nothing calls this directly

Calls 2

get_graphql_contentFunction · 0.85
post_graphqlMethod · 0.80

Tested by

no test coverage detected