feat: add FamilySearch ID to frontmatter

This commit is contained in:
Jared Howland committed 2026-04-16 13:47:59 -06:00
1 parent 48e339c119
commit 14cd8beadc
5 files changed
+21

No files matched your search

+1
View File
@@ -41,6 +41,7 @@ def sample_gedcom_content():
1 NAME John /Doe/
2 GIVN John
2 SURN Doe
1 _FSFTID G123-ABC
1 SEX M
1 BIRT
2 DATE 1 JAN 1950
+4
View File
@@ -80,6 +80,10 @@ class TestIndividualBasicInfo:
"""Test gender extraction."""
assert john_doe.get_gender() == 'M'
def test_get_fs_id(self, john_doe):
"""Test FamilySearch Tree ID extraction from _FSFTID tag."""
assert john_doe.get_fs_id() == 'G123-ABC'
def test_get_gender_default_unknown(self, sample_gedcom_file):
"""Test that missing gender defaults to 'U'."""
gedcom_content = """0 HEAD
+1
View File
@@ -129,6 +129,7 @@ class TestMetadataFormatting:
# Check for YAML frontmatter metadata
assert 'ID: I1' in content
assert 'FamilySearch_ID: G123-ABC' in content
assert 'Name: John Doe' in content
assert 'Sex: M' in content