Skip to content

Commit

Permalink
Merge pull request #360 from mxr/fix-tests
Browse files Browse the repository at this point in the history
Fix duplicate test names
  • Loading branch information
boxed committed Jul 8, 2020
2 parents e35d0bc + c98172c commit 7cf638f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_datetimes.py
Expand Up @@ -491,12 +491,12 @@ def test_method_decorator_works_on_unittest(self):
self.assertEqual(datetime.date(2013, 4, 9), datetime.date.today())

@freeze_time('2013-04-09', as_kwarg='frozen_time')
def test_method_decorator_works_on_unittest(self, frozen_time):
def test_method_decorator_works_on_unittest_kwarg_frozen_time(self, frozen_time):
self.assertEqual(datetime.date(2013, 4, 9), datetime.date.today())
self.assertEqual(datetime.date(2013, 4, 9), frozen_time.time_to_freeze.today())

@freeze_time('2013-04-09', as_kwarg='hello')
def test_method_decorator_works_on_unittest(self, **kwargs):
def test_method_decorator_works_on_unittest_kwarg_hello(self, **kwargs):
self.assertEqual(datetime.date(2013, 4, 9), datetime.date.today())
self.assertEqual(datetime.date(2013, 4, 9), kwargs.get('hello').time_to_freeze.today())

Expand Down

0 comments on commit 7cf638f

Please sign in to comment.