Remove GraphQL API
Django CI/CD / test (push) Successful in 15s
Django CI/CD / build-and-push (push) Successful in 56s

This commit is contained in:
2026-05-12 11:08:44 +02:00
parent 94a7fe5d4d
commit 373b72306c
15 changed files with 0 additions and 283 deletions
-35
View File
@@ -1,35 +0,0 @@
import json
import os
import django
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "timetracker.settings")
django.setup()
from django.test import TestCase
from graphene_django.utils.testing import GraphQLTestCase
from games import schema
from games.models import Game
class GameAPITestCase(GraphQLTestCase):
GRAPHENE_SCHEMA = schema.schema
def test_query_all_games(self):
response = self.query(
"""
query {
games {
id
name
}
}
"""
)
self.assertResponseNoErrors(response)
self.assertEqual(
len(json.loads(response.content)["data"]["games"]),
Game.objects.count(),
)