@@ -524,7 +524,7 @@ def test_search_add_note(self):
524
524
handle = make_handle ()
525
525
headers = get_headers (self .client , "admin" , "123" )
526
526
# not added yet: shouldn't find anything
527
- rv = self .client .get ("/api/search/?query={gramps_id}" , headers = headers )
527
+ rv = self .client .get (f "/api/search/?query={ gramps_id } " , headers = headers )
528
528
self .assertEqual (rv .status_code , 200 )
529
529
self .assertEqual (rv .json , [])
530
530
obj = {
@@ -588,17 +588,13 @@ def test_search_add_person(self):
588
588
rv = self .client .post ("/api/objects/" , json = objects , headers = headers )
589
589
self .assertEqual (rv .status_code , 201 )
590
590
# now they should be there
591
- rv = self .client .get (
592
- f"/api/search/?query={ gramps_id_person } " , headers = headers
593
- )
591
+ rv = self .client .get (f"/api/search/?query={ gramps_id_person } " , headers = headers )
594
592
self .assertEqual (rv .status_code , 200 )
595
593
data = rv .json
596
594
self .assertEqual (len (data ), 1 )
597
595
self .assertEqual (data [0 ]["handle" ], handle_person )
598
596
self .assertEqual (data [0 ]["object_type" ], "person" )
599
- rv = self .client .get (
600
- f"/api/search/?query={ gramps_id_birth } " , headers = headers
601
- )
597
+ rv = self .client .get (f"/api/search/?query={ gramps_id_birth } " , headers = headers )
602
598
self .assertEqual (rv .status_code , 200 )
603
599
data = rv .json
604
600
self .assertEqual (len (data ), 1 )
0 commit comments