Add missing subselection to query, update tests

This commit is contained in:
Christian Cueni 2021-11-16 08:49:28 +01:00
parent ea43b32a75
commit 591c922c98
3 changed files with 28 additions and 16 deletions

View File

@ -5,7 +5,11 @@ query MyActivityQuery {
id
title
contents
type {
id
type
category
}
slug
bookmarks {
id
@ -13,11 +17,6 @@ query MyActivityQuery {
note {
id
text
}
instrument {
id
type
contents
}
}
}

View File

@ -1,7 +1,6 @@
from graphene import relay
from graphene_django.filter import DjangoFilterConnectionField
from assignments.models import StudentSubmission
from assignments.schema.types import AssignmentNode, StudentSubmissionNode

View File

@ -1,12 +1,3 @@
# -*- coding: utf-8 -*-
#
# ITerativ GmbH
# http://www.iterativ.ch/
#
# Copyright (c) 2019 ITerativ GmbH. All rights reserved.
#
# Created on 2019-04-11
# @author: chrigu <christian.cueni@iterativ.ch>
from django.conf import settings
import json
@ -119,6 +110,29 @@ class MyAssignemntsText(DefaultUserTestCase):
}
}
}
myInstrumentActivity {
edges {
node {
id
title
contents
type {
id
type
category
}
slug
bookmarks {
id
uuid
note {
id
text
}
}
}
}
}
}
'''