diff --git a/openlobby/core/tests/snapshots/snap_test_schema.py b/openlobby/core/tests/snapshots/snap_test_schema.py index 748cb1f2b5a4d07eb97375df4a4aae97ce36431d..3059621145b236c5ac7bb8afa3b731fe5425912f 100644 --- a/openlobby/core/tests/snapshots/snap_test_schema.py +++ b/openlobby/core/tests/snapshots/snap_test_schema.py @@ -7,6 +7,6 @@ from snapshottest import Snapshot snapshots = Snapshot() -snapshots['test_login_shortcuts 1'] = b'{"data":{"loginShortcuts":[{"id":"TG9naW5TaG9ydGN1dDoyMA==","name":"bar"}]}}' - snapshots['test_login_shortcuts__none 1'] = b'{"data":{"loginShortcuts":[]}}' + +snapshots['test_login_shortcuts 1'] = b'{"data":{"loginShortcuts":[{"id":"TG9naW5TaG9ydGN1dDoyMA==","name":"bar"}]}}' diff --git a/openlobby/core/tests/test_schema.py b/openlobby/core/tests/test_schema.py index 3eb6fbb24a3abed27a186b054f932d3e5c104209..cdbca3c0c818ec57ed7a801654edda2efb3c7ecf 100644 --- a/openlobby/core/tests/test_schema.py +++ b/openlobby/core/tests/test_schema.py @@ -5,8 +5,8 @@ from ..models import OpenIdClient @pytest.mark.django_db def test_login_shortcuts(client, snapshot): - OpenIdClient.objects.create(id=10, name='foo') - OpenIdClient.objects.create(id=20, name='bar', is_shortcut=True) + OpenIdClient.objects.create(id=10, name='foo', issuer='foo') + OpenIdClient.objects.create(id=20, name='bar', issuer='bar', is_shortcut=True) res = client.post('/graphql', {'query': """ query { loginShortcuts {