Export test module and some tests
This commit is contained in:
parent
ed1fa65569
commit
a82d5b8609
30
.gitattributes
vendored
30
.gitattributes
vendored
@ -1,15 +1,15 @@
|
||||
# Make Github recognise Gramps as a Python project,
|
||||
# by marking .sql files as text files!
|
||||
# See: https://github.com/github/linguist/issues/2462
|
||||
# https://github.com/github/linguist/blob/master/README.md
|
||||
*.sql linguist-language=txt
|
||||
|
||||
# Have Github ignore js vendored files.
|
||||
# https://github.com/gramps-project/gramps/tree/master/data/javascript
|
||||
#data/javascript/*.js linguist-vendored
|
||||
|
||||
# don't mess with line endings for Gedcom files
|
||||
*.ged binary
|
||||
*.GED binary
|
||||
|
||||
*.csv -text
|
||||
# Make Github recognise Gramps as a Python project,
|
||||
# by marking .sql files as text files!
|
||||
# See: https://github.com/github/linguist/issues/2462
|
||||
# https://github.com/github/linguist/blob/master/README.md
|
||||
*.sql linguist-language=txt
|
||||
|
||||
# Have Github ignore js vendored files.
|
||||
# https://github.com/gramps-project/gramps/tree/master/data/javascript
|
||||
#data/javascript/*.js linguist-vendored
|
||||
|
||||
# don't mess with line endings for test files
|
||||
*.vcs -text
|
||||
*.ged -text
|
||||
*.GED -text
|
||||
*.csv -text
|
||||
|
BIN
data/tests/exp_sample.gramps
Normal file
BIN
data/tests/exp_sample.gramps
Normal file
Binary file not shown.
103
data/tests/exp_sample.gw
Normal file
103
data/tests/exp_sample.gw
Normal file
@ -0,0 +1,103 @@
|
||||
fam Smith Gustaf.0 +27/11/1885 #mp Rønne,_Bornholm,_Denmark Hansdotter Anna.1 2/10/1864 #bp Löderup,_Malmöhus_Län,_Sweden 29/9/1945 #dp Sparks,_Washoe_Co.,_NV
|
||||
beg
|
||||
- f Kirsti_Marie.2 15/12/1886 #bp Rønne,_Bornholm,_Denmark 18/7/1966 #dp San_Francisco,_San_Francisco_Co.,_CA
|
||||
- f Astrid_Shermanna_Augusta.3 31/1/1889 #bp Rønne,_Bornholm,_Denmark 21/12/1963 #dp San_Francisco,_San_Francisco_Co.,_CA
|
||||
- h Hjalmar.4 31/1/1893 #bp Rønne,_Bornholm,_Denmark 25/9/1894 #dp Rønne,_Bornholm,_Denmark
|
||||
- h Hjalmar.5 7/4/1895 #bp Rønne,_Bornholm,_Denmark 26/6/1975 #dp Reno,_Washoe_Co.,_NV
|
||||
- h Gus.6 11/9/1897 #bp Rønne,_Bornholm,_Denmark 21/10/1963 #dp San_Francisco,_San_Francisco_Co.,_CA
|
||||
- h Carl_Emil.7 20/12/1899 #bp Rønne,_Bornholm,_Denmark 28/1/1959 #dp Reno,_Washoe_Co.,_NV
|
||||
- h Hans_Peter.8 17/4/1904 #bp Rønne,_Bornholm,_Denmark 29/1/1977 #dp San_Francisco,_San_Francisco_Co.,_CA
|
||||
end
|
||||
|
||||
notes Smith Hjalmar.5
|
||||
beg
|
||||
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.
|
||||
end notes
|
||||
|
||||
fam Smith Lloyd.9 +10/8/1958 #mp San_Francisco,_San_Francisco_Co.,_CA Green Janis_Elaine.10 2/12/1935
|
||||
beg
|
||||
- h Eric_Lloyd.11 28/8/1963 #bp San_Francisco,_San_Francisco_Co.,_CA
|
||||
- h Keith_Lloyd.12 11/8/1966 #bp San_Francisco,_San_Francisco_Co.,_CA
|
||||
- h Craig_Peter.13 >1966 #bp San_Francisco,_San_Francisco_Co.,_CA
|
||||
end
|
||||
|
||||
fam Smith Hans_Peter.8 + #nm Jones Lillie_Harriet.14 2/5/1910 #bp Rønne,_Bornholm,_Denmark 26/6/1990
|
||||
beg
|
||||
- h Lloyd.9 13/3/1935 #bp San_Francisco,_San_Francisco_Co.,_CA
|
||||
end
|
||||
|
||||
fam Smith Hans_Peter.8 + #nm Anderson Jennifer.15 5/11/1907 #bp Rønne,_Bornholm,_Denmark 29/5/1985 #dp San_Francisco,_San_Francisco_Co.,_CA
|
||||
|
||||
fam Smith Martin.16 +~1816 #mp Gladsax,_Kristianstad_Län,_Sweden Jefferson Elna.17 14/9/1800 #bp Gladsax,_Kristianstad_Län,_Sweden #dp Sweden
|
||||
beg
|
||||
- f Hanna.18 29/1/1821 #bp Gladsax,_Kristianstad_Län,_Sweden 0
|
||||
- f Ingar.19 >1823 #bp Gladsax,_Kristianstad_Län,_Sweden 0
|
||||
- h Ingeman.20 29/1/1826 #bp Gladsax,_Kristianstad_Län,_Sweden 0
|
||||
- h Martin.21 19/11/1830 #bp Gladsax,_Kristianstad_Län,_Sweden 1899..1905 #dp Sweden
|
||||
end
|
||||
|
||||
notes Smith Martin.21
|
||||
beg
|
||||
BIOGRAPHY
|
||||
Martin was listed as being a Husman, (owning a house as opposed to a farm) in the house records of Gladsax.
|
||||
end notes
|
||||
|
||||
fam Nielsen Herman_Julius.22 31/8/1889 #bp Rønne,_Bornholm,_Denmark 1945 +30/11/1912 #mp Rønne,_Bornholm,_Denmark Smith Astrid_Shermanna_Augusta.3
|
||||
beg
|
||||
- h 雪.23 Ke_柯 0
|
||||
end
|
||||
|
||||
notes Ke_柯 雪.23
|
||||
beg
|
||||
Some Unicode Characters: ࣶǼЀج⿄㑝㵋圛墉幵聟聦𐅉🚶🛈
|
||||
Some Bold Unicode Characters: ࣶǼЀج⿄㑝㵋圛墉幵聟聦𐅉🚶🛈
|
||||
Some Italic Unicode Characters: ࣶǼЀج⿄㑝㵋圛墉幵聟聦𐅉🚶🛈
|
||||
Some Unicode Characters: ࣶǼЀج⿄㑝㵋圛墉幵聟聦𐅉🚶🛈
|
||||
Some Bold Unicode Characters: ࣶǼЀج⿄㑝㵋圛墉幵聟聦𐅉🚶🛈
|
||||
Some Italic Unicode Characters: ࣶǼЀج⿄㑝㵋圛墉幵聟聦𐅉🚶🛈
|
||||
end notes
|
||||
|
||||
fam Smith Gus.6 +~1920 Michaels Evelyn.24 ~1897
|
||||
|
||||
fam Smith Hjalmar.5 +31/10/1927 #mp Reno,_Washoe_Co.,_NV Ohman Marjorie.25 3/6/1903 #bp Denver,_Denver_Co.,_CO,_Denver_Co.,_Colorado,_USA 22/6/1980 #dp Reno,_Washoe_Co.,_NV
|
||||
beg
|
||||
- h John_Hjalmar.26 30/1/1932 #bp San_Francisco,_San_Francisco_Co.,_CA
|
||||
- f Marjorie_Lee.27 4/11/1934 #bp Reno,_Washoe_Co.,_NV
|
||||
end
|
||||
|
||||
fam Smith John_Hjalmar.26 +4/6/1954 #mp Sparks,_Washoe_Co.,_NV Perkins Alice_Paula.28 22/11/1933 #bp Sparks,_Washoe_Co.,_NV
|
||||
beg
|
||||
- f Marjorie_Alice.29 5/2/1960 #bp San_Jose,_Santa_Clara_Co.,_CA
|
||||
- h Edwin_Michael.30 24/5/1961 #bp San_Jose,_Santa_Clara_Co.,_CA
|
||||
end
|
||||
|
||||
fam Smith Eric_Lloyd.11 +12/7/1986 #mp Woodland,_Yolo_Co.,_CA Horne Darcy.31 2/7/1966 #bp Sacramento,_Sacramento_Co.,_CA
|
||||
beg
|
||||
- h Lars_Peter.32 16/9/1991 #bp Santa_Rosa,_Sonoma_Co.,_CA
|
||||
end
|
||||
|
||||
fam Smith Edwin_Michael.30 +27/5/1995 #mp San_Ramon,_Conta_Costa_Co.,_CA Adams Janice_Ann.33 26/8/1965 #bp Fremont,_Alameda_Co.,_CA
|
||||
beg
|
||||
- h Mason_Michael.34 26/6/1996 #bp Hayward,_Alameda_Co.,_CA
|
||||
- f Amber_Marie.35 12/4/1998 #bp Hayward,_Alameda_Co.,_CA
|
||||
end
|
||||
|
||||
fam Smith Martin.21 +~1856 Hansdotter Kerstina.36 29/11/1832 #bp Smestorp,_Kristianstad_Län,_Sweden <1908 #dp Sweden
|
||||
beg
|
||||
- h Magnes.37 6/10/1858 #bp Simrishamn,_Kristianstad_Län,_Sweden 20/2/1910 #dp Rønne,_Bornholm,_Denmark
|
||||
- h Emil.38 27/9/1860 #bp Simrishamn,_Kristianstad_Län,_Sweden 0
|
||||
- h Gustaf.0 28/11/1862 #bp Grostorp,_Kristianstad_Län,_Sweden <23/7/1930 #dp Sparks,_Washoe_Co.,_NV
|
||||
end
|
||||
|
||||
fam Smith Ingeman.39 ~1770 #bp Sweden 0 +~1790 #mp Sweden Ericsdotter Marta.40 ~1775 #bp Sweden 0
|
||||
beg
|
||||
- h Martin.16 1794..1796 #bp Tommarp,_Kristianstad_Län,_Sweden #dp Sweden
|
||||
end
|
||||
|
||||
fam Willard Edwin.41 ~1886 +~1910 Smith Kirsti_Marie.2
|
||||
|
||||
fam Smith Magnes.37 +24/8/1884 #mp Rønne,_Bornholm,_Denmark Streiffert Anna.42 23/9/1860 #bp Hoya/Jona/Hoia,_Sweden 2/2/1927 #dp Rønne,_Bornholm,_Denmark
|
||||
|
418
data/tests/exp_sample.vcf
Normal file
418
data/tests/exp_sample.vcf
Normal file
@ -0,0 +1,418 @@
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Anna Hansdotter
|
||||
N:Hansdotter;Anna;;;
|
||||
SORT-STRING:Hansdotter Anna
|
||||
X-GENDER:Female
|
||||
BDAY:1864-10-02
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Keith Lloyd Smith
|
||||
N:Smith;Keith;Lloyd;;
|
||||
SORT-STRING:Smith Keith Lloyd
|
||||
X-GENDER:Male
|
||||
BDAY:1966-08-11
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Hans Peter Smith
|
||||
N:Smith;Hans;Peter;;
|
||||
SORT-STRING:Smith Hans Peter
|
||||
X-GENDER:Male
|
||||
BDAY:1904-04-17
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Hanna Smith
|
||||
N:Smith;Hanna;;;
|
||||
SORT-STRING:Smith Hanna
|
||||
X-GENDER:Female
|
||||
BDAY:1821-01-29
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Herman Julius Nielsen
|
||||
N:Nielsen;Herman;Julius;;
|
||||
SORT-STRING:Nielsen Herman Julius
|
||||
X-GENDER:Male
|
||||
BDAY:1889-08-31
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Evelyn Michaels
|
||||
N:Michaels;Evelyn;;;
|
||||
SORT-STRING:Michaels Evelyn
|
||||
X-GENDER:Female
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Marjorie Lee Smith
|
||||
N:Smith;Marjorie;Lee;;
|
||||
SORT-STRING:Smith Marjorie Lee
|
||||
X-GENDER:Female
|
||||
BDAY:1934-11-04
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Gus Smith
|
||||
N:Smith;Gus;;;
|
||||
SORT-STRING:Smith Gus
|
||||
X-GENDER:Male
|
||||
BDAY:1897-09-11
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Jennifer Anderson
|
||||
N:Anderson;Jennifer;;;
|
||||
SORT-STRING:Anderson Jennifer
|
||||
X-GENDER:Female
|
||||
BDAY:1907-11-05
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Lillie Harriet Jones
|
||||
N:Jones;Lillie;Harriet;;
|
||||
SORT-STRING:Jones Lillie Harriet
|
||||
X-GENDER:Female
|
||||
BDAY:1910-05-02
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:John Hjalmar Smith
|
||||
N:Smith;John;Hjalmar;;
|
||||
SORT-STRING:Smith John Hjalmar
|
||||
X-GENDER:Male
|
||||
BDAY:1932-01-30
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Dr. Eric Lloyd Smith
|
||||
N:Smith;Eric;Lloyd;Dr.;
|
||||
SORT-STRING:Smith Eric Lloyd
|
||||
X-GENDER:Male
|
||||
BDAY:1963-08-28
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Amber Marie Smith
|
||||
N:Smith;Amber;Marie;;
|
||||
SORT-STRING:Smith Amber Marie
|
||||
X-GENDER:Female
|
||||
BDAY:1998-04-12
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Carl Emil Smith
|
||||
N:Smith;Carl;Emil;;
|
||||
SORT-STRING:Smith Carl Emil
|
||||
X-GENDER:Male
|
||||
BDAY:1899-12-20
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Hjalmar Smith
|
||||
N:Smith;Hjalmar;;;
|
||||
SORT-STRING:Smith Hjalmar
|
||||
X-GENDER:Male
|
||||
BDAY:1893-01-31
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Martin Smith
|
||||
N:Smith;Martin;;;
|
||||
SORT-STRING:Smith Martin
|
||||
X-GENDER:Male
|
||||
BDAY:1830-11-19
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Astrid Shermanna Augusta Smith
|
||||
N:Smith;Astrid;Shermanna,Augusta;;
|
||||
SORT-STRING:Smith Astrid Shermanna Augusta
|
||||
X-GENDER:Female
|
||||
BDAY:1889-01-31
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Gustaf Smith\, Sr.
|
||||
N:Smith;Gustaf;;;Sr.
|
||||
SORT-STRING:Smith Gustaf Sr.
|
||||
X-GENDER:Male
|
||||
BDAY:1862-11-28
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Marta Ericsdotter
|
||||
N:Ericsdotter;Marta;;;
|
||||
SORT-STRING:Ericsdotter Marta
|
||||
X-GENDER:Female
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Kirsti Marie Smith
|
||||
N:Smith;Kirsti;Marie;;
|
||||
SORT-STRING:Smith Kirsti Marie
|
||||
X-GENDER:Female
|
||||
BDAY:1886-12-15
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Ingeman Smith
|
||||
N:Smith;Ingeman;;;
|
||||
SORT-STRING:Smith Ingeman
|
||||
X-GENDER:Male
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Anna Streiffert
|
||||
N:Streiffert;Anna;;;
|
||||
SORT-STRING:Streiffert Anna
|
||||
X-GENDER:Female
|
||||
BDAY:1860-09-23
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Craig Peter Smith
|
||||
N:Smith;Craig;Peter;;
|
||||
SORT-STRING:Smith Craig Peter
|
||||
X-GENDER:Male
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Magnes Smith
|
||||
N:Smith;Magnes;;;
|
||||
SORT-STRING:Smith Magnes
|
||||
X-GENDER:Male
|
||||
BDAY:1858-10-06
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Janice Ann Adams
|
||||
N:Adams;Janice;Ann;;
|
||||
SORT-STRING:Adams Janice Ann
|
||||
X-GENDER:Female
|
||||
BDAY:1965-08-26
|
||||
ROLE:Retail Manager
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Marjorie Ohman
|
||||
N:Ohman;Marjorie;;;
|
||||
SORT-STRING:Ohman Marjorie
|
||||
X-GENDER:Female
|
||||
BDAY:1903-06-03
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Darcy Horne
|
||||
N:Horne;Darcy;;;
|
||||
SORT-STRING:Horne Darcy
|
||||
X-GENDER:Female
|
||||
BDAY:1966-07-02
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Lloyd Smith
|
||||
N:Smith;Lloyd;;;
|
||||
SORT-STRING:Smith Lloyd
|
||||
X-GENDER:Male
|
||||
BDAY:1935-03-13
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Alice Paula Perkins
|
||||
N:Perkins;Alice;Paula;;
|
||||
SORT-STRING:Perkins Alice Paula
|
||||
X-GENDER:Female
|
||||
BDAY:1933-11-22
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Lars Peter Smith
|
||||
N:Smith;Lars;Peter;;
|
||||
SORT-STRING:Smith Lars Peter
|
||||
X-GENDER:Male
|
||||
BDAY:1991-09-16
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Elna Jefferson
|
||||
N:Jefferson;Elna;;;
|
||||
SORT-STRING:Jefferson Elna
|
||||
X-GENDER:Female
|
||||
BDAY:1800-09-14
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Edwin Michael Smith
|
||||
N:Smith;Edwin;Michael;;
|
||||
SORT-STRING:Smith Edwin Michael
|
||||
X-GENDER:Male
|
||||
BDAY:1961-05-24
|
||||
ROLE:Software Engineer
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Kerstina Hansdotter
|
||||
N:Hansdotter;Kerstina;;;
|
||||
SORT-STRING:Hansdotter Kerstina
|
||||
X-GENDER:Female
|
||||
BDAY:1832-11-29
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Martin Smith
|
||||
N:Smith;Martin;;;
|
||||
SORT-STRING:Smith Martin
|
||||
X-GENDER:Male
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Ingeman Smith
|
||||
N:Smith;Ingeman;;;
|
||||
SORT-STRING:Smith Ingeman
|
||||
X-GENDER:Male
|
||||
BDAY:1826-01-29
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Marjorie Alice Smith
|
||||
N:Smith;Marjorie;Alice;;
|
||||
SORT-STRING:Smith Marjorie Alice
|
||||
X-GENDER:Female
|
||||
BDAY:1960-02-05
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Janis Elaine Green
|
||||
N:Green;Janis;Elaine;;
|
||||
SORT-STRING:Green Janis Elaine
|
||||
X-GENDER:Female
|
||||
BDAY:1935-12-02
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Mason Michael Smith
|
||||
N:Smith;Mason;Michael;;
|
||||
SORT-STRING:Smith Mason Michael
|
||||
X-GENDER:Male
|
||||
BDAY:1996-06-26
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Edwin Willard
|
||||
N:Willard;Edwin;;;
|
||||
SORT-STRING:Willard Edwin
|
||||
X-GENDER:Male
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Ingar Smith
|
||||
N:Smith;Ingar;;;
|
||||
SORT-STRING:Smith Ingar
|
||||
X-GENDER:Female
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Hjalmar Smith
|
||||
N:Smith;Hjalmar;;;
|
||||
SORT-STRING:Smith Hjalmar
|
||||
X-GENDER:Male
|
||||
BDAY:1895-04-07
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
||||
FN:Emil Smith
|
||||
N:Smith;Emil;;;
|
||||
SORT-STRING:Smith Emil
|
||||
X-GENDER:Male
|
||||
BDAY:1860-09-27
|
||||
END:VCARD
|
||||
|
||||
BEGIN:VCARD
|
||||
VERSION:3.0
|
||||
PRODID:-//Gramps//NONSGML Gramps 5.0.0-alpha1//EN
|
841
data/tests/exp_sample.vcs
Normal file
841
data/tests/exp_sample.vcs
Normal file
@ -0,0 +1,841 @@
|
||||
BEGIN:VCALENDAR
|
||||
PRODID:-//GNU//Gramps//EN
|
||||
VERSION:1.0
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Hansdotter, Anna
|
||||
LOCATION:Löderup, Malmöhus Län, Sweden
|
||||
DTSTART:18641002T000001
|
||||
DTEND:18641002T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Hansdotter, Anna
|
||||
LOCATION:Löderup, Malmöhus Län, Sweden
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20161002T000001
|
||||
DTEND:20161002T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Death of Hansdotter, Anna
|
||||
LOCATION:Sparks, Washoe Co., NV
|
||||
DTSTART:19450929T000001
|
||||
DTEND:19450929T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Death of Hansdotter, Anna
|
||||
LOCATION:Sparks, Washoe Co., NV
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160929T000001
|
||||
DTEND:20160929T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Smith, Keith Lloyd
|
||||
LOCATION:San Francisco, San Francisco Co., CA
|
||||
DTSTART:19660811T000001
|
||||
DTEND:19660811T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Smith, Keith Lloyd
|
||||
LOCATION:San Francisco, San Francisco Co., CA
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160811T000001
|
||||
DTEND:20160811T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Smith, Hans Peter
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
DTSTART:19040417T000001
|
||||
DTEND:19040417T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Smith, Hans Peter
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160417T000001
|
||||
DTEND:20160417T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Death of Smith, Hans Peter
|
||||
LOCATION:San Francisco, San Francisco Co., CA
|
||||
DTSTART:19770129T000001
|
||||
DTEND:19770129T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Death of Smith, Hans Peter
|
||||
LOCATION:San Francisco, San Francisco Co., CA
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160129T000001
|
||||
DTEND:20160129T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Smith, Hanna
|
||||
LOCATION:Gladsax, Kristianstad Län, Sweden
|
||||
DTSTART:18210129T000001
|
||||
DTEND:18210129T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Smith, Hanna
|
||||
LOCATION:Gladsax, Kristianstad Län, Sweden
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160129T000001
|
||||
DTEND:20160129T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Nielsen, Herman Julius
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
DTSTART:18890831T000001
|
||||
DTEND:18890831T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Nielsen, Herman Julius
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160831T000001
|
||||
DTEND:20160831T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Smith, Marjorie Lee
|
||||
LOCATION:Reno, Washoe Co., NV
|
||||
DTSTART:19341104T000001
|
||||
DTEND:19341104T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Smith, Marjorie Lee
|
||||
LOCATION:Reno, Washoe Co., NV
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20161104T000001
|
||||
DTEND:20161104T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Smith, Gus
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
DTSTART:18970911T000001
|
||||
DTEND:18970911T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Smith, Gus
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160911T000001
|
||||
DTEND:20160911T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Death of Smith, Gus
|
||||
LOCATION:San Francisco, San Francisco Co., CA
|
||||
DTSTART:19631021T000001
|
||||
DTEND:19631021T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Death of Smith, Gus
|
||||
LOCATION:San Francisco, San Francisco Co., CA
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20161021T000001
|
||||
DTEND:20161021T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Anderson, Jennifer
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
DTSTART:19071105T000001
|
||||
DTEND:19071105T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Anderson, Jennifer
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20161105T000001
|
||||
DTEND:20161105T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Death of Anderson, Jennifer
|
||||
LOCATION:San Francisco, San Francisco Co., CA
|
||||
DTSTART:19850529T000001
|
||||
DTEND:19850529T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Death of Anderson, Jennifer
|
||||
LOCATION:San Francisco, San Francisco Co., CA
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160529T000001
|
||||
DTEND:20160529T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Jones, Lillie Harriet
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
DTSTART:19100502T000001
|
||||
DTEND:19100502T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Jones, Lillie Harriet
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160502T000001
|
||||
DTEND:20160502T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Death of Jones, Lillie Harriet
|
||||
DTSTART:19900626T000001
|
||||
DTEND:19900626T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Death of Jones, Lillie Harriet
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160626T000001
|
||||
DTEND:20160626T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Smith, John Hjalmar
|
||||
LOCATION:San Francisco, San Francisco Co., CA
|
||||
DTSTART:19320130T000001
|
||||
DTEND:19320130T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Smith, John Hjalmar
|
||||
LOCATION:San Francisco, San Francisco Co., CA
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160130T000001
|
||||
DTEND:20160130T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Smith, Eric Lloyd
|
||||
LOCATION:San Francisco, San Francisco Co., CA
|
||||
DTSTART:19630828T000001
|
||||
DTEND:19630828T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Smith, Eric Lloyd
|
||||
LOCATION:San Francisco, San Francisco Co., CA
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160828T000001
|
||||
DTEND:20160828T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Smith, Amber Marie
|
||||
LOCATION:Hayward, Alameda Co., CA
|
||||
DTSTART:19980412T000001
|
||||
DTEND:19980412T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Smith, Amber Marie
|
||||
LOCATION:Hayward, Alameda Co., CA
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160412T000001
|
||||
DTEND:20160412T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Smith, Carl Emil
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
DTSTART:18991220T000001
|
||||
DTEND:18991220T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Smith, Carl Emil
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20161220T000001
|
||||
DTEND:20161220T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Death of Smith, Carl Emil
|
||||
LOCATION:Reno, Washoe Co., NV
|
||||
DTSTART:19590128T000001
|
||||
DTEND:19590128T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Death of Smith, Carl Emil
|
||||
LOCATION:Reno, Washoe Co., NV
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160128T000001
|
||||
DTEND:20160128T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Smith, Hjalmar
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
DTSTART:18930131T000001
|
||||
DTEND:18930131T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Smith, Hjalmar
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160131T000001
|
||||
DTEND:20160131T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Death of Smith, Hjalmar
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
DTSTART:18940925T000001
|
||||
DTEND:18940925T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Death of Smith, Hjalmar
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160925T000001
|
||||
DTEND:20160925T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Smith, Martin
|
||||
LOCATION:Gladsax, Kristianstad Län, Sweden
|
||||
DTSTART:18301119T000001
|
||||
DTEND:18301119T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Smith, Martin
|
||||
LOCATION:Gladsax, Kristianstad Län, Sweden
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20161119T000001
|
||||
DTEND:20161119T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Smith, Astrid Shermanna Augusta
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
DTSTART:18890131T000001
|
||||
DTEND:18890131T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Smith, Astrid Shermanna Augusta
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160131T000001
|
||||
DTEND:20160131T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Death of Smith, Astrid Shermanna Augusta
|
||||
LOCATION:San Francisco, San Francisco Co., CA
|
||||
DTSTART:19631221T000001
|
||||
DTEND:19631221T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Death of Smith, Astrid Shermanna Augusta
|
||||
LOCATION:San Francisco, San Francisco Co., CA
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20161221T000001
|
||||
DTEND:20161221T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Smith, Gustaf Sr.
|
||||
LOCATION:Grostorp, Kristianstad Län, Sweden
|
||||
DTSTART:18621128T000001
|
||||
DTEND:18621128T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Smith, Gustaf Sr.
|
||||
LOCATION:Grostorp, Kristianstad Län, Sweden
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20161128T000001
|
||||
DTEND:20161128T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Smith, Kirsti Marie
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
DTSTART:18861215T000001
|
||||
DTEND:18861215T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Smith, Kirsti Marie
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20161215T000001
|
||||
DTEND:20161215T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Death of Smith, Kirsti Marie
|
||||
LOCATION:San Francisco, San Francisco Co., CA
|
||||
DTSTART:19660718T000001
|
||||
DTEND:19660718T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Death of Smith, Kirsti Marie
|
||||
LOCATION:San Francisco, San Francisco Co., CA
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160718T000001
|
||||
DTEND:20160718T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Streiffert, Anna
|
||||
LOCATION:Hoya/Jona/Hoia, Sweden
|
||||
DTSTART:18600923T000001
|
||||
DTEND:18600923T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Streiffert, Anna
|
||||
LOCATION:Hoya/Jona/Hoia, Sweden
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160923T000001
|
||||
DTEND:20160923T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Death of Streiffert, Anna
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
DTSTART:19270202T000001
|
||||
DTEND:19270202T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Death of Streiffert, Anna
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160202T000001
|
||||
DTEND:20160202T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Smith, Magnes
|
||||
LOCATION:Simrishamn, Kristianstad Län, Sweden
|
||||
DTSTART:18581006T000001
|
||||
DTEND:18581006T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Smith, Magnes
|
||||
LOCATION:Simrishamn, Kristianstad Län, Sweden
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20161006T000001
|
||||
DTEND:20161006T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Death of Smith, Magnes
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
DTSTART:19100220T000001
|
||||
DTEND:19100220T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Death of Smith, Magnes
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160220T000001
|
||||
DTEND:20160220T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Adams, Janice Ann
|
||||
LOCATION:Fremont, Alameda Co., CA
|
||||
DTSTART:19650826T000001
|
||||
DTEND:19650826T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Adams, Janice Ann
|
||||
LOCATION:Fremont, Alameda Co., CA
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160826T000001
|
||||
DTEND:20160826T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Ohman, Marjorie
|
||||
LOCATION:Denver, Denver Co., CO, Denver Co., Colorado, USA
|
||||
DTSTART:19030603T000001
|
||||
DTEND:19030603T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Ohman, Marjorie
|
||||
LOCATION:Denver, Denver Co., CO, Denver Co., Colorado, USA
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160603T000001
|
||||
DTEND:20160603T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Death of Ohman, Marjorie
|
||||
LOCATION:Reno, Washoe Co., NV
|
||||
DTSTART:19800622T000001
|
||||
DTEND:19800622T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Death of Ohman, Marjorie
|
||||
LOCATION:Reno, Washoe Co., NV
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160622T000001
|
||||
DTEND:20160622T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Horne, Darcy
|
||||
LOCATION:Sacramento, Sacramento Co., CA
|
||||
DTSTART:19660702T000001
|
||||
DTEND:19660702T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Horne, Darcy
|
||||
LOCATION:Sacramento, Sacramento Co., CA
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160702T000001
|
||||
DTEND:20160702T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Smith, Lloyd
|
||||
LOCATION:San Francisco, San Francisco Co., CA
|
||||
DTSTART:19350313T000001
|
||||
DTEND:19350313T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Smith, Lloyd
|
||||
LOCATION:San Francisco, San Francisco Co., CA
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160313T000001
|
||||
DTEND:20160313T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Perkins, Alice Paula
|
||||
LOCATION:Sparks, Washoe Co., NV
|
||||
DTSTART:19331122T000001
|
||||
DTEND:19331122T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Perkins, Alice Paula
|
||||
LOCATION:Sparks, Washoe Co., NV
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20161122T000001
|
||||
DTEND:20161122T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Smith, Lars Peter
|
||||
LOCATION:Santa Rosa, Sonoma Co., CA
|
||||
DTSTART:19910916T000001
|
||||
DTEND:19910916T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Smith, Lars Peter
|
||||
LOCATION:Santa Rosa, Sonoma Co., CA
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160916T000001
|
||||
DTEND:20160916T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Jefferson, Elna
|
||||
LOCATION:Gladsax, Kristianstad Län, Sweden
|
||||
DTSTART:18000914T000001
|
||||
DTEND:18000914T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Jefferson, Elna
|
||||
LOCATION:Gladsax, Kristianstad Län, Sweden
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160914T000001
|
||||
DTEND:20160914T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Smith, Edwin Michael
|
||||
LOCATION:San Jose, Santa Clara Co., CA
|
||||
DTSTART:19610524T000001
|
||||
DTEND:19610524T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Smith, Edwin Michael
|
||||
LOCATION:San Jose, Santa Clara Co., CA
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160524T000001
|
||||
DTEND:20160524T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Hansdotter, Kerstina
|
||||
LOCATION:Smestorp, Kristianstad Län, Sweden
|
||||
DTSTART:18321129T000001
|
||||
DTEND:18321129T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Hansdotter, Kerstina
|
||||
LOCATION:Smestorp, Kristianstad Län, Sweden
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20161129T000001
|
||||
DTEND:20161129T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Smith, Ingeman
|
||||
LOCATION:Gladsax, Kristianstad Län, Sweden
|
||||
DTSTART:18260129T000001
|
||||
DTEND:18260129T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Smith, Ingeman
|
||||
LOCATION:Gladsax, Kristianstad Län, Sweden
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160129T000001
|
||||
DTEND:20160129T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Smith, Marjorie Alice
|
||||
LOCATION:San Jose, Santa Clara Co., CA
|
||||
DTSTART:19600205T000001
|
||||
DTEND:19600205T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Smith, Marjorie Alice
|
||||
LOCATION:San Jose, Santa Clara Co., CA
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160205T000001
|
||||
DTEND:20160205T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Green, Janis Elaine
|
||||
DTSTART:19351202T000001
|
||||
DTEND:19351202T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Green, Janis Elaine
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20161202T000001
|
||||
DTEND:20161202T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Smith, Mason Michael
|
||||
LOCATION:Hayward, Alameda Co., CA
|
||||
DTSTART:19960626T000001
|
||||
DTEND:19960626T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Smith, Mason Michael
|
||||
LOCATION:Hayward, Alameda Co., CA
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160626T000001
|
||||
DTEND:20160626T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Smith, Hjalmar
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
DTSTART:18950407T000001
|
||||
DTEND:18950407T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Smith, Hjalmar
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160407T000001
|
||||
DTEND:20160407T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Death of Smith, Hjalmar
|
||||
LOCATION:Reno, Washoe Co., NV
|
||||
DTSTART:19750626T000001
|
||||
DTEND:19750626T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Death of Smith, Hjalmar
|
||||
LOCATION:Reno, Washoe Co., NV
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160626T000001
|
||||
DTEND:20160626T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Birth of Smith, Emil
|
||||
LOCATION:Simrishamn, Kristianstad Län, Sweden
|
||||
DTSTART:18600927T000001
|
||||
DTEND:18600927T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Birth of Smith, Emil
|
||||
LOCATION:Simrishamn, Kristianstad Län, Sweden
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160927T000001
|
||||
DTEND:20160927T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Marriage of Smith, Gustaf Sr. and Hansdotter, Anna
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
DTSTART:18851127T000001
|
||||
DTEND:18851127T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Marriage of Smith, Gustaf Sr. and Hansdotter, Anna
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20161127T000001
|
||||
DTEND:20161127T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Marriage of Smith, Lloyd and Green, Janis Elaine
|
||||
LOCATION:San Francisco, San Francisco Co., CA
|
||||
DTSTART:19580810T000001
|
||||
DTEND:19580810T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Marriage of Smith, Lloyd and Green, Janis Elaine
|
||||
LOCATION:San Francisco, San Francisco Co., CA
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160810T000001
|
||||
DTEND:20160810T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Marriage of Nielsen, Herman Julius and Smith, Astrid Shermanna Augusta
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
DTSTART:19121130T000001
|
||||
DTEND:19121130T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Marriage of Nielsen, Herman Julius and Smith, Astrid Shermanna Augusta
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20161130T000001
|
||||
DTEND:20161130T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Marriage of Smith, Hjalmar and Ohman, Marjorie
|
||||
LOCATION:Reno, Washoe Co., NV
|
||||
DTSTART:19271031T000001
|
||||
DTEND:19271031T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Marriage of Smith, Hjalmar and Ohman, Marjorie
|
||||
LOCATION:Reno, Washoe Co., NV
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20161031T000001
|
||||
DTEND:20161031T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Marriage of Smith, John Hjalmar and Perkins, Alice Paula
|
||||
LOCATION:Sparks, Washoe Co., NV
|
||||
DTSTART:19540604T000001
|
||||
DTEND:19540604T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Marriage of Smith, John Hjalmar and Perkins, Alice Paula
|
||||
LOCATION:Sparks, Washoe Co., NV
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160604T000001
|
||||
DTEND:20160604T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Marriage of Smith, Eric Lloyd and Horne, Darcy
|
||||
LOCATION:Woodland, Yolo Co., CA
|
||||
DTSTART:19860712T000001
|
||||
DTEND:19860712T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Marriage of Smith, Eric Lloyd and Horne, Darcy
|
||||
LOCATION:Woodland, Yolo Co., CA
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160712T000001
|
||||
DTEND:20160712T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Marriage of Smith, Edwin Michael and Adams, Janice Ann
|
||||
LOCATION:San Ramon, Conta Costa Co., CA
|
||||
DTSTART:19950527T000001
|
||||
DTEND:19950527T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Marriage of Smith, Edwin Michael and Adams, Janice Ann
|
||||
LOCATION:San Ramon, Conta Costa Co., CA
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160527T000001
|
||||
DTEND:20160527T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Marriage of Smith, Magnes and Streiffert, Anna
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
DTSTART:18840824T000001
|
||||
DTEND:18840824T235959
|
||||
END:VEVENT
|
||||
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:Anniversary: Marriage of Smith, Magnes and Streiffert, Anna
|
||||
LOCATION:Rønne, Bornholm, Denmark
|
||||
RRULE:FREQ=YEARLY
|
||||
DTSTART:20160824T000001
|
||||
DTEND:20160824T235959
|
||||
END:VEVENT
|
||||
|
||||
END:VCALENDAR
|
1015
data/tests/exp_sample_ged.ged
Normal file
1015
data/tests/exp_sample_ged.ged
Normal file
File diff suppressed because it is too large
Load Diff
@ -27,6 +27,7 @@ from gramps.test.test_util import Gramps
|
||||
from gramps.gen.const import TEMP_DIR, DATA_DIR
|
||||
from gramps.gen.datehandler import set_format
|
||||
from gramps.cli.user import User
|
||||
from gramps.gen.utils.config import config
|
||||
|
||||
TREE_NAME = "Test_exporttest"
|
||||
TEST_DIR = os.path.abspath(os.path.join(DATA_DIR, "tests"))
|
||||
@ -35,20 +36,17 @@ TEST_DIR = os.path.abspath(os.path.join(DATA_DIR, "tests"))
|
||||
def call(*args):
|
||||
""" Call Gramps to perform the action with out and err captured """
|
||||
print("call:", args)
|
||||
set_format(0) # Use ISO date for test
|
||||
gramps = Gramps(user=User(auto_accept=True, quiet=True))
|
||||
out, err = gramps.run(*args)
|
||||
print("out:", out, "err:", err)
|
||||
return out, err
|
||||
|
||||
|
||||
def do_it(tstfile):
|
||||
def do_it(srcfile, tstfile, dfilter=None):
|
||||
""" based on tstfile, prepare an result export and compare with
|
||||
expected.
|
||||
"""
|
||||
fname = os.path.splitext(os.path.basename(tstfile))[0]
|
||||
|
||||
tst_file = os.path.join(TEST_DIR, fname + ".gramps")
|
||||
tst_file = os.path.join(TEST_DIR, srcfile)
|
||||
expect_file = os.path.join(TEST_DIR, tstfile)
|
||||
result_file = os.path.join(TEMP_DIR, tstfile)
|
||||
err = call("-C", TREE_NAME, "-q",
|
||||
@ -56,7 +54,7 @@ def do_it(tstfile):
|
||||
"--export", result_file)[1]
|
||||
if "Cleaning up." not in err:
|
||||
return "Export failed, no 'Cleaning up.'"
|
||||
msg = compare(expect_file, result_file)
|
||||
msg = compare(expect_file, result_file, dfilter)
|
||||
if not msg:
|
||||
# we will leave the result_file in place if there was an error.
|
||||
try:
|
||||
@ -68,20 +66,89 @@ def do_it(tstfile):
|
||||
return msg
|
||||
|
||||
|
||||
def compare(expect_file, result_file):
|
||||
def compare(expect_file, result_file, dfilter=None):
|
||||
""" This uses the diff library to compare two files
|
||||
"""
|
||||
with open(expect_file, encoding='utf-8_sig') as exp_f, \
|
||||
open(result_file, encoding='utf-8_sig') as res_f:
|
||||
with open(expect_file, encoding='utf-8_sig', errors='surrogateescape')\
|
||||
as exp_f, \
|
||||
open(result_file, encoding='utf-8_sig', errors='surrogateescape')\
|
||||
as res_f:
|
||||
diff = difflib.unified_diff(exp_f.readlines(),
|
||||
res_f.readlines(),
|
||||
n=2, lineterm='\n')
|
||||
msg = ""
|
||||
fail = False
|
||||
for line in diff:
|
||||
if line == "--- \n" or line == "+++ \n":
|
||||
continue
|
||||
msg += line
|
||||
return msg
|
||||
if dfilter:
|
||||
fail += dfilter(line)
|
||||
return msg if fail else ""
|
||||
|
||||
|
||||
def gedfilt(line):
|
||||
""" A filter for Gedcom files.
|
||||
This implements a filter that allows some differences to be ignored.
|
||||
The differences are not functional, but are related to changes in Gramps
|
||||
version, file date/time and filename.
|
||||
"""
|
||||
#pylint: disable=unsubscriptable-object
|
||||
if line.startswith('@@'):
|
||||
gedfilt.prev = [None] * 8
|
||||
gedfilt.indx = 0
|
||||
return False
|
||||
retval = True
|
||||
diftyp = line[0]
|
||||
line = line[1:].partition(' ')
|
||||
level = int(line[0])
|
||||
token, toss, line = line[2].partition(' ')
|
||||
if diftyp == ' ':
|
||||
# save the line for later if needed to figure out the data element
|
||||
gedfilt.prev[gedfilt.indx] = token, level, line
|
||||
gedfilt.indx = (gedfilt.indx + 1) % 8
|
||||
retval = False
|
||||
elif diftyp == '-':
|
||||
# save the line for later if needed to figure out the data element
|
||||
gedfilt.prev[gedfilt.indx] = token, level, line
|
||||
gedfilt.indx = (gedfilt.indx + 1) % 8
|
||||
if token == "VERS" and gedfilt.prev[gedfilt.indx-2][0] == "SOUR":
|
||||
# we must have a header with Gramps version
|
||||
retval = False
|
||||
elif token == "DATE" and gedfilt.prev[gedfilt.indx-2][0] == "NAME":
|
||||
# we must have a header with file date
|
||||
retval = False
|
||||
elif token == "TIME" and gedfilt.prev[gedfilt.indx-2][0] == "DATE":
|
||||
# probably have a header with file time
|
||||
retval = False
|
||||
elif token == "FILE" and line.endswith('.ged\n'):
|
||||
# probably have a header with file name
|
||||
retval = False
|
||||
else: # this is an addition
|
||||
if token == "VERS" and gedfilt.prev[gedfilt.indx-1][0] == "VERS":
|
||||
# we must have a header with Gramps version
|
||||
retval = False
|
||||
elif token == "DATE" and (gedfilt.prev[gedfilt.indx-2][0] == "NAME" or
|
||||
gedfilt.prev[gedfilt.indx-3][0] == "NAME"):
|
||||
# we must have a header with file date
|
||||
retval = False
|
||||
elif token == "TIME" and (gedfilt.prev[gedfilt.indx-2][0] == "DATE" or
|
||||
gedfilt.prev[gedfilt.indx-3][0] == "DATE"):
|
||||
# probably have a header with file time
|
||||
retval = False
|
||||
elif token == "FILE" and line.endswith('.ged\n'):
|
||||
# probably have a header with file name
|
||||
retval = False
|
||||
return retval
|
||||
|
||||
|
||||
def vcffilt(line):
|
||||
""" A filter for VCard files.
|
||||
This implements a filter that allows some differences to be ignored.
|
||||
The differences are not functional, but are related to changes in Gramps
|
||||
version.
|
||||
"""
|
||||
return False if line.startswith('PRODID:') else True
|
||||
|
||||
|
||||
class ExportControl(unittest.TestCase):
|
||||
@ -102,8 +169,46 @@ class ExportControl(unittest.TestCase):
|
||||
|
||||
def test_csv(self):
|
||||
""" Run a csv export test """
|
||||
set_format(0) # Use ISO date for test
|
||||
src_file = 'exp_sample_csv.gramps'
|
||||
tst_file = 'exp_sample_csv.csv'
|
||||
msg = do_it(tst_file)
|
||||
msg = do_it(src_file, tst_file)
|
||||
if msg:
|
||||
self.fail(tst_file + ': ' + msg)
|
||||
|
||||
def test_ged(self):
|
||||
""" Run a Gedcom export test """
|
||||
config.set('preferences.place-auto', True)
|
||||
src_file = 'exp_sample.gramps'
|
||||
tst_file = 'exp_sample_ged.ged'
|
||||
msg = do_it(src_file, tst_file, gedfilt)
|
||||
if msg:
|
||||
self.fail(tst_file + ': ' + msg)
|
||||
|
||||
def test_vcard(self):
|
||||
""" Run a vcard export test """
|
||||
config.set('preferences.place-auto', True)
|
||||
src_file = 'exp_sample.gramps'
|
||||
tst_file = 'exp_sample.vcf'
|
||||
msg = do_it(src_file, tst_file, vcffilt)
|
||||
if msg:
|
||||
self.fail(tst_file + ': ' + msg)
|
||||
|
||||
def test_vcs(self):
|
||||
""" Run a Vcalandar export test """
|
||||
config.set('preferences.place-auto', True)
|
||||
src_file = 'exp_sample.gramps'
|
||||
tst_file = 'exp_sample.vcs'
|
||||
msg = do_it(src_file, tst_file)
|
||||
if msg:
|
||||
self.fail(tst_file + ': ' + msg)
|
||||
|
||||
def test_gw(self):
|
||||
""" Run a Geneweb export test """
|
||||
config.set('preferences.place-auto', True)
|
||||
src_file = 'exp_sample.gramps'
|
||||
tst_file = 'exp_sample.gw'
|
||||
msg = do_it(src_file, tst_file)
|
||||
if msg:
|
||||
self.fail(tst_file + ': ' + msg)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user