From 162be7237d54ed4a3112040234f89b830ddedaa3 Mon Sep 17 00:00:00 2001 From: Kresten Laust Date: Thu, 22 Feb 2024 14:46:28 +0100 Subject: [PATCH 1/3] Introduce whitespace error locally --- stregsystem/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stregsystem/tests.py b/stregsystem/tests.py index 8dfe16cf..403d924a 100644 --- a/stregsystem/tests.py +++ b/stregsystem/tests.py @@ -1866,4 +1866,4 @@ def test_if_sunday_is_in_week(self): average_developer.sale_set.create(product=coffee, price=coffee.price) self.assertTrue(coffee_addict.is_leading_coffee_addict()) - self.assertFalse(average_developer.is_leading_coffee_addict()) + self.assertFalse(average_developer.is_leading_coffee_addict()) \ No newline at end of file From 143db9cea643dc6f849dd41457022789adbf9e21 Mon Sep 17 00:00:00 2001 From: Kresten Laust Date: Thu, 22 Feb 2024 14:48:22 +0100 Subject: [PATCH 2/3] Reformat using black --- stregsystem/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stregsystem/tests.py b/stregsystem/tests.py index 403d924a..8dfe16cf 100644 --- a/stregsystem/tests.py +++ b/stregsystem/tests.py @@ -1866,4 +1866,4 @@ def test_if_sunday_is_in_week(self): average_developer.sale_set.create(product=coffee, price=coffee.price) self.assertTrue(coffee_addict.is_leading_coffee_addict()) - self.assertFalse(average_developer.is_leading_coffee_addict()) \ No newline at end of file + self.assertFalse(average_developer.is_leading_coffee_addict()) From b935b6f633a325be9a9b769e33065b625d8afecf Mon Sep 17 00:00:00 2001 From: Kresten Laust Date: Sun, 25 Feb 2024 16:32:04 +0100 Subject: [PATCH 3/3] Boand Fix --- stregsystem/tests.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/stregsystem/tests.py b/stregsystem/tests.py index 8dfe16cf..63003645 100644 --- a/stregsystem/tests.py +++ b/stregsystem/tests.py @@ -1821,7 +1821,9 @@ def test_multiple_caffeine_intake_at_odd_times(self): def test_caffeine_str_is_correct_length(self): user = Member.objects.create(username="test", gender='F', balance=100) - coffee = Product.objects.create(name="Kaffe☕☕☕", price=1, caffeine_content_mg=CAFFEINE_IN_COFFEE, active=True) + coffee = Product.objects.create( + name="Kaffe☕☕☕", price=1, caffeine_content_mg=CAFFEINE_IN_COFFEE, active=True + ) # do five sales of coffee and assert that emoji renderer returns same amount of emoji sales = 5 @@ -1852,7 +1854,9 @@ def test_if_sunday_is_in_week(self): average_developer = Member.objects.create(username="my-gal", gender="F", balance=50) coffee_category = Category.objects.create(name="Caffeine☕☕☕", pk=6) coffee_category.save() - coffee = Product.objects.create(name="Kaffe☕☕☕", price=1, caffeine_content_mg=CAFFEINE_IN_COFFEE, active=True) + coffee = Product.objects.create( + name="Kaffe☕☕☕", price=1, caffeine_content_mg=CAFFEINE_IN_COFFEE, active=True + ) # matches coffee id in production. Will be implemented with categories later, when production have a coffee # category coffee.save()