diff --git a/data/tests/data.gramps b/data/tests/data.gramps new file mode 100644 index 000000000..454934be8 --- /dev/null +++ b/data/tests/data.gramps @@ -0,0 +1,1822 @@ + + + +
+ + + Alex Roitman + 1122 Boogie Boogie Ave + Suburb 1 + Gotham City + NY + USA + 11111 + (555)123-4567 + anyone@someplace.com + + {GRAMPS_RESOURCES}/example/gramps +
+ + + + + + Birth + + + Birth of Anna Hansdotter + + + Death + + + Death of Anna Hansdotter + + + Birth + + + Birth of Keith Lloyd Smith + + + Birth + + + Birth of Hans Peter Smith + + + Death + + + Death of Hans Peter Smith + + + Birth + + + Birth of Hanna Smith + + + Birth + + + Birth of Herman Julius Nielsen + + + Death + + Death of Herman Julius Nielsen + + + Birth + + Birth of Evelyn Michaels + + + Birth + + + Birth of Marjorie Lee Smith + + + Birth + + + Birth of Gus Smith + + + Death + + + Death of Gus Smith + + + Birth + + + Birth of Jennifer Anderson + + + Death + + + Death of Jennifer Anderson + + + Birth + + + Birth of Lillie Harriet Jones + + + Death + + Death of Lillie Harriet Jones + + + Birth + + + Birth of John Hjalmar Smith + + + Birth + + + Birth of Eric Lloyd Smith + + + Birth + + + Birth of Amber Marie Smith + + + Christening + + + Christening of Amber Marie Smith + + + Birth + + + Birth of Carl Emil Smith + + + Death + + + Death of Carl Emil Smith + + + + Birth + + + Birth of Hjalmar Smith + + + Death + + + Death of Hjalmar Smith + + + Birth + + + Birth of Martin Smith + + + Death + + + Death of Martin Smith + + + Baptism + + + Baptism of Martin Smith + + + Birth + + + Birth of Astrid Shermanna Augusta Smith + + + Death + + + Death of Astrid Shermanna Augusta Smith + + + Birth + + + Birth of Gustaf Smith, Sr. + + + Death + + + Death of Gustaf Smith, Sr. + + + Immi + + + + + Christening + + + Christening of Gustaf Smith, Sr. + + + Birth + + + Birth of Marta Ericsdotter + + + Birth + + + Birth of Kirsti Marie Smith + + + Death + + + Death of Kirsti Marie Smith + + + Birth + + + Birth of Ingeman Smith + + + Birth + + + Birth of Anna Streiffert + + + Death + + + Death of Anna Streiffert + + + Birth + + + Birth of Craig Peter Smith + + + Census + Census of Craig Peter Smith + + + + Birth + + + Birth of Magnes Smith + + + Death + + + Death of Magnes Smith + + + Birth + + + Birth of Janice Ann Adams + + + Occupation + Retail Manager + + + Degree + + Business Management + + + Birth + + + Birth of Marjorie Ohman + + + Death + + + Death of Marjorie Ohman + + + Birth + + + Birth of Darcy Horne + + + Birth + + + Birth of Lloyd Smith + + + Birth + + + Birth of Alice Paula Perkins + + + Birth + + + Birth of Lars Peter Smith + + + Birth + + + Birth of Elna Jefferson + + + Death + + Death of Elna Jefferson + + + Christening + + + Christening of Elna Jefferson + + + Birth + + + Birth of Edwin Michael Smith + + + + Occupation + Software Engineer + + + + Education + + + Education of Edwin Michael Smith + + + Degree + + B.S.E.E. + + + Birth + + + Birth of Kerstina Hansdotter + + + Death + + + Death of Kerstina Hansdotter + + + Birth + + + Birth of Martin Smith + + + Death + + Death of Martin Smith + + + Birth + + + Birth of Ingeman Smith + + + Birth + + + Birth of Marjorie Alice Smith + + + Birth + + Birth of Janis Elaine Green + + + Birth + + + Birth of Mason Michael Smith + + + Christening + + + Christening of Mason Michael Smith + + + Birth + + Birth of Edwin Willard + + + Birth + + + Birth of Ingar Smith + + + Birth + + + Birth of Hjalmar Smith + + + Death + + + Death of Hjalmar Smith + + + Baptism + + + Baptism of Hjalmar Smith + + + Immi + + + + + Birth + + + Birth of Emil Smith + + + Marriage + + + Marriage of Martin Smith and Elna Jefferson + + + Marriage + + + Marriage of Ingeman Smith and Marta Ericsdotter + + + Marriage + + + Marriage of Eric Lloyd Smith and Darcy Horne + + + Marriage + + + Marriage of Magnes Smith and Anna Streiffert + + + Marriage + + + Marriage of John Hjalmar Smith and Alice Paula Perkins + + + + Marriage + + + Marriage of Edwin Michael Smith and Janice Ann Adams + + + Engagement + + + Engagement of Edwin Michael Smith and Janice Ann Adams + + + Marriage + + Marriage of Martin Smith and Kerstina Hansdotter + + + Marriage + + + Marriage of Gustaf Smith, Sr. and Anna Hansdotter + + + Marriage + + Marriage of Edwin Willard and Kirsti Marie Smith + + + Marriage + + + Marriage of Herman Julius Nielsen and Astrid Shermanna Augusta Smith + + + Marriage + + + Marriage of Hjalmar Smith and Marjorie Ohman + + + Marriage + + Marriage of Gus Smith and Evelyn Michaels + + + Marriage + + + Marriage of Lloyd Smith and Janis Elaine Green + + + Birth + + + + Death + + + + + Marriage + + + + Birth + + + + Birth + + + + + Birth + + + + Death + + + + Marriage + + + + + Divorce + + + + Birth + + + + Death + + + + + Marriage + + + + + Birth + + + + + Marriage + + + + Divorce + + + + Birth + + + + Birth + + + + + Birth + + + + Death + + + + Marriage + + + + Birth + + + + Birth + + + + Birth + + + + Divorce + + + + Marriage + + + + Death + + + + Birth + + + + + Death + + + + Birth + + + + Marriage + + + + Divorce + + + + Birth + + + + Marriage + + + + Birth + + + + Birth + + + + Birth + + + + + + M + + Ingeman + Smith + + + + + + M + + John Hjalmar + Smith + + + + + + + F + + Kerstina + Hansdotter + + + + + + + M + + Martin + Smith + + + + + + + + F + + Anna + Streiffert + + + + + + + F + + Marjorie Alice + Smith + + + + + + + M + + Martin + Smith + + + + + + + + + + F + + Hanna + Smith + + + + + + F + + Janis Elaine + Green + + + + + + M + + Gus + Smith + + + + + + + + M + + Hjalmar + Smith + + + + + + + + + + + M + + Magnes + Smith + + + + + + + + M + + Mason Michael + Smith + + + + + + + + M + + Hans Peter + Smith + + + + + + + + + M + + Gustaf + Smith + Sr. + + + + + + + + + + + + M + + Carl Emil + Smith + + + + + + + + F + + Lillie Harriet + Jones + + + + + + + F + + Astrid Shermanna Augusta + Smith + + + + + + + + M + + Keith Lloyd + Smith + + + + + + + M + + Edwin Michael + Smith + + + + + + + + + + + + + + + M + + Eric Lloyd + Smith + + + + + + + F + + Marta + Ericsdotter + + + + + + M + + Craig Peter + Smith + + + + + + + F + + Amber Marie + Smith + + + + + + + M + + Lloyd + Smith + + + + + + + F + + Darcy + Horne + + + + + + F + + Kirsti Marie + Smith + + + + + + + + M + + Lars Peter + Smith + + + + + + F + + Janice Ann + Adams + + + + + + + + F + + Anna + Hansdotter + + + + + + + F + + Marjorie + Ohman + + + + + + + M + + Herman Julius + Nielsen + + + + + + + M + + Emil + Smith + + + + + + M + + Ingeman + Smith + + + + + + F + + Elna + Jefferson + + + + + + + + M + + Hjalmar + Smith + + + + + + + F + + Alice Paula + Perkins + + + + + + F + + Marjorie Lee + Smith + + + + + + F + + Ingar + Smith + + + + + + + M + + Edwin + Willard + + + + + + F + + Jennifer + Anderson + + + + + + + F + + Evelyn + Michaels + + + + + + F + + Alvera C. + Erickson + + + + + + + F + + Anna Louise + Smith + + + + + + + + + F + + Elaine Marie + Smith + + + + + + + M + + Eli Harry + Jones + + + + + + + M + + Leroy Verl + Morgan + + + + + + + + F + + Roberta Michele + Jones + + + + + + + M + + Frank Albert + Jones + + + + + + + F + + Margaret Ann + Morgan + + + + + + M + + Robert Alfred + Shannon + + + + + + + + F + + Kelly Christine + Shannon + + + + + + F + + Lisa Marie + Shannon + + + + + + M + + Matthew John + Shannon + + + + + + M + + Warren Edward + Smith + + + + + + + + + F + + Alice Hannah + Iverson + + + + + + F + + Evelyn Lucille + Watson + + + + + + F + + Marie Astri + Smith + + + + + + + F + + Susan Elizabeth + Smith + + + + + + + F + + Karen Christine + Smith + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + 2 + + + + 2 + + + + + + Birth Certificate + + + Birth Records + + + Marriage Certificae + + + + + + Birth, Death and Marriage Records + + + + + + + Ronne, Bornholm, Denmark + + + + + Grostorp, Kristianstad Lan, Sweden + + + + + San Francisco, San Francisco Co., CA, USA + + + + + Reno, Washoe Co., NV, USA + + + + + Sweden + + + + Simrishamn, Kristianstad Lan, Sweden + + + + + Copenhagen, Denmark + + + + + San Ramon, Conta Costa Co., CA, USA + + + + + Hoya, Sweden + + + + + + + Hayward, Alameda Co., CA, USA + + + + + Santa Rosa, Sonoma Co., CA, USA + + + + + Sacramento, Sacramento Co., CA, USA + + + + + Fremont, Alameda Co., CA, USA + + + + + Loderup, Malmous Lan, Sweden + + + + + + + + + San Jose, Santa Clara Co., CA, USA + + + + + UC Berkeley, CA, USA + + + + + Smestorp, Kristianstad Lan, Sweden + + + + + Woodland, Yolo Co., CA, USA + + + + + Ronne Bornholm, Denmark + + + + + Tommarp, Kristianstad Lan, Sweden + + + + + Denver, Denver Co., CO, USA + + + + + Sparks, Washoe Co., NV, USA + + + + + Community Presbyterian Church, Danville, CA, USA + + + + + Gladsax, Kristianstad Lan, Sweden + + + + + Kristianstad Lan, Sweden + + + + + Malmous Lan, Sweden + + + + + Denmark + + + + Bornholm, Denmark + + + + + USA + + + + CA, USA + + + + + CO, USA + + + + + NV, USA + + + + + Alameda Co., CA, USA + + + + + Sacramento Co., CA, USA + + + + + San Francisco Co., CA, USA + + + + + Santa Clara Co., CA, USA + + + + + Conta Costa Co., CA, USA + + + + + Sonoma Co., CA, USA + + + + + Yolo Co., CA, USA + + + + + Danville, CA, USA + + + + + Denver Co., CO, USA + + + + + Washoe Co., NV, USA + + + + + + + + + + + + + + + + + + + + + + + + + + + New York Public Library + Library +
+ 5th Ave at 42 street + New York + New York + USA + 11111 +
+
+ + Aunt Martha's Attic + Collection +
+ 123 Main St + Someville + ST + USA +
+ + +
+
+ + + Witness name: John Doe +Witness comment: This is a simple test. + + + Witness name: No Name + + + BIOGRAPHY +Martin was listed as being a Husman, (owning a house as opposed to a farm) in the house records of Gladsax. + + + BIOGRAPHY + +Hjalmar sailed from Copenhagen, Denmark on the OSCAR II, 14 November 1912 arriving in New York 27 November 1912. He was seventeen years old. On the ship passenger list his trade was listed as a Blacksmith. He came to Reno, Nevada and lived with his sister Marie for a time before settling in Sparks. He worked for Southern Pacific Railroad as a car inspector for a time, then went to work for Standard Oil +Company. He enlisted in the army at Sparks 7 December 1917 and served as a Corporal in the Medical Corp until his discharge 12 August 1919 at the Presidio in San Francisco, California. Both he and Marjorie are buried in the Masonic Memorial Gardens Mausoleum in Reno, he the 30th June 1975, and she the 25th of June 1980. + + + But Aunt Martha still keeps the original! + + + The repository reference from the source is important + + + Some note on the repo + + +
diff --git a/gramps/plugins/db/test/db_test.py b/gramps/plugins/db/test/db_test.py index b92ab9665..cb0b24a77 100644 --- a/gramps/plugins/db/test/db_test.py +++ b/gramps/plugins/db/test/db_test.py @@ -24,10 +24,10 @@ import os from gramps.test.test_util import Gramps from gramps.gen.db import open_database from gramps.gen.lib import * +from gramps.gen.const import DATA_DIR -ddir = os.path.dirname(__file__) -example = os.path.join(ddir, "..", "..", "..", "..", - "example", "gramps", "data.gramps") +TEST_DIR = os.path.abspath(os.path.join(DATA_DIR, "tests")) +example = os.path.join(TEST_DIR, "data.gramps") class BSDDB: NAME = "Example BSDDB Test"