File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -381,9 +381,13 @@ def test_set_u():
381
381
client = Client (hkl ).client
382
382
383
383
u_matrix = np .identity (3 )
384
- client .put ("/ub/test/u?collection=B07" , json = u_matrix .tolist ())
384
+ response = client .put ("/ub/test/u?collection=B07" , json = u_matrix .tolist ())
385
385
386
386
assert np .all (ubcalc .U == u_matrix )
387
+ assert (
388
+ literal_eval (response .content .decode ())["message" ]
389
+ == "U matrix set for crystal test of collection B07"
390
+ )
387
391
388
392
389
393
def test_set_ub ():
@@ -392,9 +396,13 @@ def test_set_ub():
392
396
client = Client (hkl ).client
393
397
394
398
ub_matrix = np .identity (3 )
395
- client .put ("/ub/test/ub?collection=B07" , json = ub_matrix .tolist ())
399
+ response = client .put ("/ub/test/ub?collection=B07" , json = ub_matrix .tolist ())
396
400
397
- assert np .all (ubcalc .U == ub_matrix )
401
+ assert np .all (ubcalc .UB == ub_matrix )
402
+ assert (
403
+ literal_eval (response .content .decode ())["message" ]
404
+ == "UB matrix set for crystal test of collection B07"
405
+ )
398
406
399
407
400
408
def test_modify_property ():
You can’t perform that action at this time.
0 commit comments