|
1 | | -from datetime import date |
| 1 | +from datetime import date, datetime |
2 | 2 | from humps import camelize |
3 | 3 | from mavedb.models.enums.processing_state import ProcessingState |
4 | 4 |
|
|
56 | 56 | "is_first_login": True, |
57 | 57 | } |
58 | 58 |
|
59 | | -TEST_DESCRIPTION = 'description' |
| 59 | +TEST_DESCRIPTION = "description" |
60 | 60 |
|
61 | 61 | ADMIN_USER_DECODED_JWT = { |
62 | 62 | "sub": ADMIN_USER["username"], |
|
77 | 77 | "key": "Variant Library Creation Method", |
78 | 78 | "value": "Endogenous locus library method", |
79 | 79 | "special": False, |
80 | | - "description": "Description" |
| 80 | + "description": "Description", |
81 | 81 | }, |
82 | 82 | { |
83 | 83 | "key": "Variant Library Creation Method", |
84 | 84 | "value": "In vitro construct library method", |
85 | 85 | "special": False, |
86 | | - "description": "Description" |
87 | | - }, |
88 | | - { |
89 | | - "key": "Variant Library Creation Method", |
90 | | - "value": "Other", |
91 | | - "special": False, |
92 | | - "description": "Description" |
| 86 | + "description": "Description", |
93 | 87 | }, |
| 88 | + {"key": "Variant Library Creation Method", "value": "Other", "special": False, "description": "Description"}, |
94 | 89 | { |
95 | 90 | "key": "Endogenous Locus Library Method System", |
96 | 91 | "value": "SaCas9", |
97 | 92 | "special": False, |
98 | | - "description": "Description" |
| 93 | + "description": "Description", |
99 | 94 | }, |
100 | 95 | { |
101 | 96 | "key": "Endogenous Locus Library Method Mechanism", |
102 | 97 | "value": "Base editor", |
103 | 98 | "special": False, |
104 | | - "description": "Description" |
| 99 | + "description": "Description", |
105 | 100 | }, |
106 | 101 | { |
107 | 102 | "key": "In Vitro Construct Library Method System", |
108 | 103 | "value": "Oligo-directed mutagenic PCR", |
109 | 104 | "special": False, |
110 | | - "description": "Description" |
| 105 | + "description": "Description", |
111 | 106 | }, |
112 | 107 | { |
113 | 108 | "key": "In Vitro Construct Library Method Mechanism", |
114 | 109 | "value": "Native locus replacement", |
115 | 110 | "special": False, |
116 | | - "description": "Description" |
| 111 | + "description": "Description", |
117 | 112 | }, |
118 | | - { |
119 | | - "key": "Delivery method", |
120 | | - "value": "Other", |
121 | | - "special": False, |
122 | | - "description": "Description" |
123 | | - } |
| 113 | + {"key": "Delivery method", "value": "Other", "special": False, "description": "Description"}, |
124 | 114 | ] |
125 | 115 |
|
126 | 116 | TEST_KEYWORDS = [ |
|
129 | 119 | "key": "Variant Library Creation Method", |
130 | 120 | "value": "Endogenous locus library method", |
131 | 121 | "special": False, |
132 | | - "description": "Description" |
| 122 | + "description": "Description", |
133 | 123 | }, |
134 | 124 | }, |
135 | 125 | { |
136 | 126 | "keyword": { |
137 | 127 | "key": "Endogenous Locus Library Method System", |
138 | 128 | "value": "SaCas9", |
139 | 129 | "special": False, |
140 | | - "description": "Description" |
| 130 | + "description": "Description", |
141 | 131 | }, |
142 | 132 | }, |
143 | 133 | { |
144 | 134 | "keyword": { |
145 | 135 | "key": "Endogenous Locus Library Method Mechanism", |
146 | 136 | "value": "Base editor", |
147 | 137 | "special": False, |
148 | | - "description": "Description" |
| 138 | + "description": "Description", |
149 | 139 | }, |
150 | 140 | }, |
151 | 141 | { |
152 | | - "keyword": { |
153 | | - "key": "Delivery method", |
154 | | - "value": "Other", |
155 | | - "special": False, |
156 | | - "description": "Description" |
157 | | - }, |
158 | | - "description": "Details of delivery method" |
| 142 | + "keyword": {"key": "Delivery method", "value": "Other", "special": False, "description": "Description"}, |
| 143 | + "description": "Details of delivery method", |
159 | 144 | }, |
160 | 145 | ] |
161 | 146 |
|
|
166 | 151 | "methodText": "Methods", |
167 | 152 | "keywords": [ |
168 | 153 | { |
169 | | - "keyword": { |
170 | | - "key": "Delivery method", |
171 | | - "value": "Other", |
172 | | - "special": False, |
173 | | - "description": "Description" |
174 | | - }, |
175 | | - "description": "Details of delivery method" |
| 154 | + "keyword": {"key": "Delivery method", "value": "Other", "special": False, "description": "Description"}, |
| 155 | + "description": "Details of delivery method", |
176 | 156 | }, |
177 | | - ] |
| 157 | + ], |
178 | 158 | } |
179 | 159 |
|
180 | 160 | TEST_MINIMAL_EXPERIMENT = { |
|
232 | 212 | "modificationDate": date.today().isoformat(), |
233 | 213 | "scoreSetUrns": [], |
234 | 214 | "contributors": [], |
235 | | - "keywords": [{ |
236 | | - "keyword": { |
237 | | - "key": "Delivery method", |
238 | | - "value": "Other", |
239 | | - "special": False, |
240 | | - "description": "Description" |
241 | | - }, |
242 | | - "description": "Details of delivery method" |
243 | | - }, |
| 215 | + "keywords": [ |
| 216 | + { |
| 217 | + "keyword": {"key": "Delivery method", "value": "Other", "special": False, "description": "Description"}, |
| 218 | + "description": "Details of delivery method", |
| 219 | + }, |
244 | 220 | ], |
245 | 221 | "doiIdentifiers": [], |
246 | 222 | "primaryPublicationIdentifiers": [], |
|
276 | 252 | "key": "Variant Library Creation Method", |
277 | 253 | "value": "Other", |
278 | 254 | "special": False, |
279 | | - "description": "Description" |
| 255 | + "description": "Description", |
280 | 256 | }, |
281 | | - "description": "Description" |
| 257 | + "description": "Description", |
282 | 258 | }, |
283 | 259 | { |
284 | | - "keyword": { |
285 | | - "key": "Delivery method", |
286 | | - "value": "Other", |
287 | | - "special": False, |
288 | | - "description": "Description" |
289 | | - }, |
290 | | - "description": "Description" |
| 260 | + "keyword": {"key": "Delivery method", "value": "Other", "special": False, "description": "Description"}, |
| 261 | + "description": "Description", |
291 | 262 | }, |
292 | 263 | ], |
293 | 264 | "doiIdentifiers": [], |
|
527 | 498 |
|
528 | 499 | TEST_VARIANT_MAPPING_SCAFFOLD = { |
529 | 500 | "metadata": {}, |
530 | | - "computed_reference_sequence": {"sequence_type": "dna", "sequence_id": "ga4gh:SQ.ref_test", "sequence": "ACGTTT"}, |
531 | | - "mapped_reference_sequence": { |
| 501 | + "computed_genomic_reference_sequence": { |
| 502 | + "sequence_type": "dna", |
| 503 | + "sequence_id": "ga4gh:SQ.ref_test", |
| 504 | + "sequence": "ACGTTT", |
| 505 | + }, |
| 506 | + "mapped_genomic_reference_sequence": { |
532 | 507 | "sequence_type": "dna", |
533 | 508 | "sequence_id": "ga4gh:SQ.map_test", |
534 | 509 | "sequence_accessions": ["NC_000001.11"], |
535 | 510 | }, |
536 | 511 | "mapped_scores": [], |
537 | 512 | "vrs_version": "2.0", |
538 | | - "api_version": "0.0.0", |
| 513 | + "dcd_mapping_version": "pytest.0.0", |
| 514 | + "mapped_date_utc": datetime.isoformat(datetime.now()), |
539 | 515 | } |
0 commit comments