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:
@@ -23,9 +23,9 @@ class TestGLDBacking:
|
|||||||
|
|
||||||
def test_gld_backing_decays_over_time(self) -> None:
|
def test_gld_backing_decays_over_time(self) -> None:
|
||||||
"""GLD backing should decay as years pass."""
|
"""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))
|
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)
|
assert float(backing_2026) < float(backing_2004)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user