File tree 3 files changed +11
-2
lines changed
tests/integration/queries
3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ class ListSubmissions(GraphQLRequest):
55
55
inputFile
56
56
inputFilename
57
57
resultFile
58
+ deleted
58
59
retrieved
59
60
errors
60
61
}
@@ -113,6 +114,7 @@ class GetSubmission(GraphQLRequest):
113
114
inputFilename
114
115
resultFile
115
116
retrieved
117
+ deleted
116
118
errors
117
119
}
118
120
}
@@ -152,6 +154,7 @@ class WaitForSubmissions(RequestChain):
152
154
inputFilename
153
155
resultFile
154
156
retrieved
157
+ deleted
155
158
errors
156
159
}
157
160
}
@@ -210,6 +213,7 @@ class UpdateSubmission(GraphQLRequest):
210
213
inputFilename
211
214
resultFile
212
215
retrieved
216
+ deleted
213
217
errors
214
218
}
215
219
}
Original file line number Diff line number Diff line change @@ -54,9 +54,9 @@ class Submission(BaseType):
54
54
result_file (str): URL of the result datafile within the Indico Platform
55
55
retrieved (bool): Whether the submission has been retrieved by a user
56
56
This flag is set manually by users.
57
+ deleted (bool): Whether the submission result has been deleted from the server
57
58
errors (str): Any errors raised while processing the submission
58
59
retries (List[SubmissionRetries]): If requested, information about previous retries of this submission.
59
-
60
60
"""
61
61
62
62
id : int
@@ -68,5 +68,6 @@ class Submission(BaseType):
68
68
input_filename : str
69
69
result_file : str
70
70
retrieved : bool
71
+ deleted : bool
71
72
errors : str
72
73
retries : List [SubmissionRetries ]
Original file line number Diff line number Diff line change 3
3
from indico .queries .workflow import GetWorkflow
4
4
import pytest
5
5
from pathlib import Path
6
+ import time
6
7
7
8
from indico .client import IndicoClient
8
9
from indico .errors import IndicoError , IndicoInputError
@@ -93,9 +94,12 @@ def test_workflow_submission(
93
94
assert isinstance (result , dict )
94
95
assert result ["submission_id" ] == submission_id
95
96
assert result ["file_version" ] == 1
96
- client .call (UpdateSubmission (submission_id , retrieved = True ))
97
97
sub = client .call (GetSubmission (submission_id ))
98
98
assert isinstance (sub , Submission )
99
+ assert sub .retrieved is False
100
+ assert sub .deleted is False
101
+ client .call (UpdateSubmission (submission_id , retrieved = True ))
102
+ sub = client .call (GetSubmission (submission_id ))
99
103
assert sub .retrieved is True
100
104
101
105
def test_workflow_submission_with_streams (
You can’t perform that action at this time.
0 commit comments