@@ -504,13 +504,15 @@ def test_get_places_handle_parameter_profile(self):
504
504
rv ["profile" ],
505
505
{
506
506
"alternate_names" : [],
507
+ "alternate_place_names" : [],
507
508
"gramps_id" : "P0860" ,
508
509
"lat" : 33.6259414 ,
509
510
"long" : - 97.1333453 ,
510
511
"name" : "Gainesville" ,
511
512
"parent_places" : [
512
513
{
513
514
"alternate_names" : [],
515
+ "alternate_place_names" : [],
514
516
"gramps_id" : "P0194" ,
515
517
"lat" : 0 ,
516
518
"long" : 0 ,
@@ -519,6 +521,7 @@ def test_get_places_handle_parameter_profile(self):
519
521
},
520
522
{
521
523
"alternate_names" : [],
524
+ "alternate_place_names" : [],
522
525
"gramps_id" : "P0010" ,
523
526
"lat" : 0 ,
524
527
"long" : 0 ,
@@ -527,6 +530,7 @@ def test_get_places_handle_parameter_profile(self):
527
530
},
528
531
{
529
532
"alternate_names" : [],
533
+ "alternate_place_names" : [],
530
534
"gramps_id" : "P0957" ,
531
535
"lat" : 0 ,
532
536
"long" : 0 ,
@@ -538,6 +542,43 @@ def test_get_places_handle_parameter_profile(self):
538
542
},
539
543
)
540
544
545
+ def test_get_places_handle_parameter_profile_alternative_names (self ):
546
+ """Test place profile."""
547
+ rv = check_success (
548
+ self , TEST_URL + "fce62795df51c5d8ae432e3942c?profile=all&locale=en"
549
+ )
550
+ self .maxDiff = None
551
+ self .assertEqual (
552
+ rv ["profile" ],
553
+ {
554
+ "alternate_names" : ["Leningrad" , "Petrograd" ],
555
+ "alternate_place_names" : [
556
+ {
557
+ "date_str" : "between 1924-01-26 and 1991-09-06" ,
558
+ "value" : "Leningrad" ,
559
+ },
560
+ {"date_str" : "between 1914 and 1924" , "value" : "Petrograd" },
561
+ ],
562
+ "gramps_id" : "P0443" ,
563
+ "lat" : 0 ,
564
+ "long" : 0 ,
565
+ "name" : "Saint Petersburg" ,
566
+ "parent_places" : [
567
+ {
568
+ "alternate_names" : [],
569
+ "alternate_place_names" : [],
570
+ "gramps_id" : "P0442" ,
571
+ "lat" : 0 ,
572
+ "long" : 0 ,
573
+ "name" : "Russia" ,
574
+ "type" : "Country" ,
575
+ },
576
+ ],
577
+ "references" : {},
578
+ "type" : "City" ,
579
+ },
580
+ )
581
+
541
582
def test_get_places_handle_parameter_backlinks_validate_semantics (self ):
542
583
"""Test invalid backlinks parameter and values."""
543
584
check_invalid_semantics (
0 commit comments