Skip to content

Commit ea3c1ae

Browse files
committed
Fix relative affix for 'all' granularity test data
Since #996 was fixed by #1077, the test no longer needs to use the incorrect data to work around the bug.
1 parent b2d2894 commit ea3c1ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_arrow.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2057,7 +2057,7 @@ def test_all_granularity(self):
20572057
assert (
20582058
self.now.humanize(granularity="all")
20592059
== "in 0 years 0 quarters 0 months 0 weeks 0 days 0 hours 0 minutes and 0 seconds"
2060-
) # TODO: this should be "ago"; change this when #997 is merged
2060+
)
20612061

20622062
later105 = self.arrow.shift(seconds=10 ** 5)
20632063
assert (
@@ -2086,8 +2086,8 @@ def test_all_granularity(self):
20862086
later_two_months = self.arrow.shift(days=61)
20872087
assert (
20882088
self.arrow.humanize(later_two_months, granularity="all")
2089-
== "in 0 years 0 quarters 2 months 0 weeks 0 days 0 hours 0 minutes and 0 seconds"
2090-
) # TODO: this should be "ago"; change this when #997 is merged
2089+
== "0 years 0 quarters 2 months 0 weeks 0 days 0 hours 0 minutes and 0 seconds ago"
2090+
)
20912091
assert (
20922092
later_two_months.humanize(self.arrow, granularity="all")
20932093
== "in 0 years 0 quarters 2 months 0 weeks 0 days 0 hours 0 minutes and 0 seconds"

0 commit comments

Comments
 (0)