From 842d09bb551cd245e620ce8dc8de6853b9b96748 Mon Sep 17 00:00:00 2001 From: Pamela Hathway Date: Wed, 21 Aug 2024 23:15:11 +0200 Subject: [PATCH] capitalises constants --- src/brewing/brew_potions.py | 2 +- src/brewing/containers.py | 10 +++++----- src/brewing/cooking.py | 6 +++--- src/brewing/ingredients.py | 8 ++++---- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/brewing/brew_potions.py b/src/brewing/brew_potions.py index 38bcd95..bbe6c51 100644 --- a/src/brewing/brew_potions.py +++ b/src/brewing/brew_potions.py @@ -6,7 +6,7 @@ from brewing import inspection def make_example_potion(student_name="ASPP student"): my_potion = potion_class.Potion(student_name=student_name) # Set up your old kettle and light an eternal flame underneath it. - my_potion.setup(container=containers.old_kettle) + my_potion.setup(container=containers.OLD_KETTLE) # Simmer for 5 hours. cooking.simmer(my_potion, duration=5) print(f"You successfully ran make_example_potion, {student_name}, well done :).") diff --git a/src/brewing/containers.py b/src/brewing/containers.py index d355480..642f170 100644 --- a/src/brewing/containers.py +++ b/src/brewing/containers.py @@ -1,6 +1,6 @@ # containers -pewter_cauldron = 'pewter_cauldron' -copper_cauldron = 'copper_cauldron' -martini_glass = 'martini_glass' -old_kettle = 'old_kettle' -raki_bottle = 'raki_bottle' +PEWTER_CAULDRON = 'pewter_cauldron' +COPPER_CAULDRON = 'copper_cauldron' +MARTINI_GLASS = 'martini_glass' +OLD_KETTLE = 'old_kettle' +RAKI_BOTTLE = 'raki_bottle' diff --git a/src/brewing/cooking.py b/src/brewing/cooking.py index d675b3e..a3affcc 100644 --- a/src/brewing/cooking.py +++ b/src/brewing/cooking.py @@ -1,7 +1,7 @@ # heat sources -fire = 'fire' -eternal_flame = 'eternal_flame' -breathe_on_cauldron = 'breathe_on_cauldron' +FIRE = 'fire' +ETERNAL_FLAME = 'eternal_flame' +BREATHE_ON_CAULDRON = 'breathe_on_cauldron' def stir(potion, direction): diff --git a/src/brewing/ingredients.py b/src/brewing/ingredients.py index 12511b6..f79665d 100644 --- a/src/brewing/ingredients.py +++ b/src/brewing/ingredients.py @@ -1,5 +1,5 @@ # ingredients -snake_skin = 'snake_skin' -fish_eyes = 'fish_eyes' -unicorn_hair = 'unicorn_hair' -tea_leaves = 'tea_leaves' +SNAKE_SKIN = 'snake_skin' +FISH_EYES = 'fish_eyes' +UNICORN_HAIR = 'unicorn_hair' +TEA_LEAVES = 'tea_leaves'