(self)
| 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']) |
nothing calls this directly
no test coverage detected