fix(tests): use GLD launch date in decay test

Use date(2004, 11, 18) instead of date(2004, 1, 1) since GLD didn't
exist before November 18, 2004. The validation now correctly raises
ValueError for pre-launch dates.
This commit is contained in:
Bu5hm4nn
2026-03-29 14:47:36 +02:00
parent 092d710eeb
commit 2e2a832b31

View File

@@ -23,9 +23,9 @@ class TestGLDBacking:
def test_gld_backing_decays_over_time(self) -> None:
"""GLD backing should decay as years pass."""
backing_2004 = gld_ounces_per_share(date(2004, 1, 1))
backing_2004 = gld_ounces_per_share(date(2004, 11, 18)) # GLD launch date
backing_2026 = gld_ounces_per_share(date(2026, 1, 1))
assert float(backing_2004) == 0.10
assert float(backing_2004) == 0.10 # At launch, exactly 0.10 oz/share
assert float(backing_2026) < float(backing_2004)