mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-22 12:11:26 +00:00
test(jobs): subscription query generating function
This commit is contained in:
parent
4306c94231
commit
098abd5149
|
@ -73,6 +73,10 @@ def generate_jobs_query(query_array):
|
|||
return "query TestJobs {\n jobs {" + "\n".join(query_array) + "}\n}"
|
||||
|
||||
|
||||
def generate_jobs_subscription(query_array):
|
||||
return "subscription TestSubscription {\n jobs {" + "\n".join(query_array) + "}\n}"
|
||||
|
||||
|
||||
def generate_service_query(query_array):
|
||||
return "query TestService {\n services {" + "\n".join(query_array) + "}\n}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue