Skip to content

Commit

Permalink
Fix duplicate test names
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Rozentsveyg committed Jul 8, 2020
1 parent e35d0bc commit edb30fe
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 edb30fe

Please sign in to comment.