diff --git a/simple_history/tests/tests/test_utils.py b/simple_history/tests/tests/test_utils.py index 258108e3..dc25234d 100644 --- a/simple_history/tests/tests/test_utils.py +++ b/simple_history/tests/tests/test_utils.py @@ -516,7 +516,7 @@ class CustomHistoricalAttrsTest(TestCase): def setUp(self): self.data = [ - PollWithHistoricalSessionAttr(id=x, question='Question ' + str(x)) + PollWithHistoricalSessionAttr(id=x, question="Question " + str(x)) for x in range(5) ] @@ -524,7 +524,7 @@ def test_bulk_create_history_with_custom_model_attributes(self): bulk_create_with_history( self.data, PollWithHistoricalSessionAttr, - custom_historical_attrs={'session': 'jam'} + custom_historical_attrs={"session": "jam"} ) self.assertEqual(PollWithHistoricalSessionAttr.objects.count(), 5) @@ -535,7 +535,7 @@ def test_bulk_create_history_with_custom_model_attributes(self): def test_bulk_update_history_with_custom_model_attributes(self): update_data = [ - PollWithHistoricalSessionAttr(id=x, question='Q' + str(x)) + PollWithHistoricalSessionAttr(id=x, question="Q" + str(x)) for x in range(5) ] @@ -543,7 +543,7 @@ def test_bulk_update_history_with_custom_model_attributes(self): update_data, PollWithHistoricalSessionAttr, fields=["question"], - custom_historical_attrs={'session': 'training'} + custom_historical_attrs={"session": "training"} ) self.assertTrue( @@ -559,7 +559,7 @@ def test_bulk_manager_with_custom_model_attributes(self): history_manager = get_history_manager_for_model(PollWithHistoricalSessionAttr) history_manager.bulk_history_create( [], - custom_historical_attrs={'session': 'co-op'} + custom_historical_attrs={"session": "co-op"} ) self.assertTrue(