Skip to content

Commit 119821a

Browse files
committed
Run black
1 parent 40a8030 commit 119821a

File tree

7 files changed

+114
-113
lines changed

7 files changed

+114
-113
lines changed

labkey/storage.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
4747
############################################################################
4848
"""
49+
4950
import functools
5051
from dataclasses import dataclass
5152

samples/query_examples.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"""
1717
Examples using the Query.py API
1818
"""
19+
1920
from labkey.api_wrapper import APIWrapper
2021
from labkey.exceptions import (
2122
RequestError,

test/integration/test_query.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ def test_api_save_rows(api: APIWrapper, blood_sample_type_fixture, tissue_sample
346346
assert resp["committed"] == False
347347
assert resp["errorCount"] == 1
348348
assert (
349-
"SampleID or Name is required for sample on row 2" in
350-
resp["result"][0]["errors"]["exception"]
349+
"SampleID or Name is required for sample on row 2"
350+
in resp["result"][0]["errors"]["exception"]
351351
)
352352

353353
# Fix the first command by specifying a name for the sample

test/unit/test_domain.py

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
throws_error_test_get,
4343
)
4444

45-
4645
domain_controller = "property"
4746

4847

@@ -83,7 +82,7 @@ def test_success(self):
8382
create,
8483
False,
8584
*self.args,
86-
**self.expected_kwargs
85+
**self.expected_kwargs,
8786
)
8887

8988
def test_unauthorized(self):
@@ -94,7 +93,7 @@ def test_unauthorized(self):
9493
self.service.get_unauthorized_response(),
9594
create,
9695
*self.args,
97-
**self.expected_kwargs
96+
**self.expected_kwargs,
9897
)
9998

10099

@@ -134,7 +133,7 @@ def test_success(self):
134133
drop,
135134
False,
136135
*self.args,
137-
**self.expected_kwargs
136+
**self.expected_kwargs,
138137
)
139138

140139
def test_unauthorized(self):
@@ -145,7 +144,7 @@ def test_unauthorized(self):
145144
self.service.get_unauthorized_response(),
146145
drop,
147146
*self.args,
148-
**self.expected_kwargs
147+
**self.expected_kwargs,
149148
)
150149

151150

@@ -183,7 +182,7 @@ def test_success(self):
183182
get,
184183
False,
185184
*self.args,
186-
**self.expected_kwargs
185+
**self.expected_kwargs,
187186
)
188187

189188
def test_unauthorized(self):
@@ -194,7 +193,7 @@ def test_unauthorized(self):
194193
self.service.get_unauthorized_response(),
195194
get,
196195
*self.args,
197-
**self.expected_kwargs
196+
**self.expected_kwargs,
198197
)
199198

200199

@@ -234,7 +233,7 @@ def test_success(self):
234233
infer_fields,
235234
False,
236235
*self.args,
237-
**self.expected_kwargs
236+
**self.expected_kwargs,
238237
)
239238

240239
def test_unauthorized(self):
@@ -245,7 +244,7 @@ def test_unauthorized(self):
245244
self.service.get_unauthorized_response(),
246245
infer_fields,
247246
*self.args,
248-
**self.expected_kwargs
247+
**self.expected_kwargs,
249248
)
250249

251250

@@ -297,7 +296,7 @@ def test_success(self):
297296
save,
298297
False,
299298
*self.args,
300-
**self.expected_kwargs
299+
**self.expected_kwargs,
301300
)
302301

303302
def test_unauthorized(self):
@@ -308,7 +307,7 @@ def test_unauthorized(self):
308307
self.service.get_unauthorized_response(),
309308
save,
310309
*self.args,
311-
**self.expected_kwargs
310+
**self.expected_kwargs,
312311
)
313312

314313

@@ -365,7 +364,7 @@ def test_success(self):
365364
create,
366365
False,
367366
*self.args,
368-
**self.expected_kwargs
367+
**self.expected_kwargs,
369368
)
370369

371370
def test_unauthorized(self):
@@ -376,7 +375,7 @@ def test_unauthorized(self):
376375
self.service.get_unauthorized_response(),
377376
create,
378377
*self.args,
379-
**self.expected_kwargs
378+
**self.expected_kwargs,
380379
)
381380

382381

@@ -455,7 +454,7 @@ def test_success(self):
455454
save,
456455
True,
457456
*self.args,
458-
**self.expected_kwargs
457+
**self.expected_kwargs,
459458
)
460459

461460
def test_unauthorized(self):
@@ -466,7 +465,7 @@ def test_unauthorized(self):
466465
self.service.get_unauthorized_response(),
467466
save,
468467
*self.args,
469-
**self.expected_kwargs
468+
**self.expected_kwargs,
470469
)
471470

472471

test/unit/test_experiment_api.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def test_success(self):
221221
load_batch,
222222
False,
223223
*self.args,
224-
**self.expected_kwargs
224+
**self.expected_kwargs,
225225
)
226226

227227
def test_unauthorized(self):
@@ -232,7 +232,7 @@ def test_unauthorized(self):
232232
self.service.get_unauthorized_response(),
233233
load_batch,
234234
*self.args,
235-
**self.expected_kwargs
235+
**self.expected_kwargs,
236236
)
237237

238238
def test_query_not_found(self):
@@ -243,7 +243,7 @@ def test_query_not_found(self):
243243
self.service.get_query_not_found_response(),
244244
load_batch,
245245
*self.args,
246-
**self.expected_kwargs
246+
**self.expected_kwargs,
247247
)
248248

249249
def test_server_not_found(self):
@@ -254,7 +254,7 @@ def test_server_not_found(self):
254254
self.service.get_server_not_found_response(),
255255
load_batch,
256256
*self.args,
257-
**self.expected_kwargs
257+
**self.expected_kwargs,
258258
)
259259

260260
def test_general_error(self):
@@ -265,7 +265,7 @@ def test_general_error(self):
265265
self.service.get_general_error_response(),
266266
load_batch,
267267
*self.args,
268-
**self.expected_kwargs
268+
**self.expected_kwargs,
269269
)
270270

271271

@@ -304,7 +304,7 @@ def test_success(self):
304304
save_batch,
305305
False,
306306
*self.args,
307-
**self.expected_kwargs
307+
**self.expected_kwargs,
308308
)
309309

310310
def test_unauthorized(self):
@@ -315,7 +315,7 @@ def test_unauthorized(self):
315315
self.service.get_unauthorized_response(),
316316
save_batch,
317317
*self.args,
318-
**self.expected_kwargs
318+
**self.expected_kwargs,
319319
)
320320

321321
def test_query_not_found(self):
@@ -326,7 +326,7 @@ def test_query_not_found(self):
326326
self.service.get_query_not_found_response(),
327327
save_batch,
328328
*self.args,
329-
**self.expected_kwargs
329+
**self.expected_kwargs,
330330
)
331331

332332
def test_server_not_found(self):
@@ -337,7 +337,7 @@ def test_server_not_found(self):
337337
self.service.get_server_not_found_response(),
338338
save_batch,
339339
*self.args,
340-
**self.expected_kwargs
340+
**self.expected_kwargs,
341341
)
342342

343343
def test_general_error(self):
@@ -348,7 +348,7 @@ def test_general_error(self):
348348
self.service.get_general_error_response(),
349349
save_batch,
350350
*self.args,
351-
**self.expected_kwargs
351+
**self.expected_kwargs,
352352
)
353353

354354

0 commit comments

Comments
 (0)