Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt fix black formatter #408

Merged
merged 3 commits into from
Feb 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions stregsystem/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down
Loading