Skip to content

Commit

Permalink
Fix relative affix for 'all' granularity test data
Browse files Browse the repository at this point in the history
Since arrow-py#996 was fixed by arrow-py#1077, the test no longer needs to use the
incorrect data to work around the bug.
  • Loading branch information
MarkKoz committed Dec 24, 2021
1 parent b2d2894 commit ea3c1ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_arrow.py
Expand Up @@ -2057,7 +2057,7 @@ def test_all_granularity(self):
assert (
self.now.humanize(granularity="all")
== "in 0 years 0 quarters 0 months 0 weeks 0 days 0 hours 0 minutes and 0 seconds"
) # TODO: this should be "ago"; change this when #997 is merged
)

later105 = self.arrow.shift(seconds=10 ** 5)
assert (
Expand Down Expand Up @@ -2086,8 +2086,8 @@ def test_all_granularity(self):
later_two_months = self.arrow.shift(days=61)
assert (
self.arrow.humanize(later_two_months, granularity="all")
== "in 0 years 0 quarters 2 months 0 weeks 0 days 0 hours 0 minutes and 0 seconds"
) # TODO: this should be "ago"; change this when #997 is merged
== "0 years 0 quarters 2 months 0 weeks 0 days 0 hours 0 minutes and 0 seconds ago"
)
assert (
later_two_months.humanize(self.arrow, granularity="all")
== "in 0 years 0 quarters 2 months 0 weeks 0 days 0 hours 0 minutes and 0 seconds"
Expand Down

0 comments on commit ea3c1ae

Please sign in to comment.