Skip to content
Snippets Groups Projects
Commit 0fca47f1 authored by jan.bednarik's avatar jan.bednarik
Browse files

Fix schema tests.

parent 210bfbb1
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,6 @@ from snapshottest import Snapshot ...@@ -7,6 +7,6 @@ from snapshottest import Snapshot
snapshots = 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__none 1'] = b'{"data":{"loginShortcuts":[]}}'
snapshots['test_login_shortcuts 1'] = b'{"data":{"loginShortcuts":[{"id":"TG9naW5TaG9ydGN1dDoyMA==","name":"bar"}]}}'
...@@ -5,8 +5,8 @@ from ..models import OpenIdClient ...@@ -5,8 +5,8 @@ from ..models import OpenIdClient
@pytest.mark.django_db @pytest.mark.django_db
def test_login_shortcuts(client, snapshot): def test_login_shortcuts(client, snapshot):
OpenIdClient.objects.create(id=10, name='foo') OpenIdClient.objects.create(id=10, name='foo', issuer='foo')
OpenIdClient.objects.create(id=20, name='bar', is_shortcut=True) OpenIdClient.objects.create(id=20, name='bar', issuer='bar', is_shortcut=True)
res = client.post('/graphql', {'query': """ res = client.post('/graphql', {'query': """
query { query {
loginShortcuts { loginShortcuts {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment