Skip to content
Snippets Groups Projects
Commit 2f06f266 authored by wep23441's avatar wep23441
Browse files

linting 2

parent ec4f4022
Branches
No related tags found
No related merge requests found
......@@ -34,7 +34,8 @@ class TestWizardCalculator(unittest.TestCase):
def test_conjure_magic_circle_area(self):
self.assertAlmostEqual(conjure_magic_circle_area(1), math.pi)
self.assertAlmostEqual(conjure_magic_circle_area(0), 0)
self.assertAlmostEqual(conjure_magic_circle_area(2.5), math.pi * 2.5 * 2.5)
self.assertAlmostEqual(conjure_magic_circle_area(2.5),
math.pi * 2.5 * 2.5)
if __name__ == "__main__":
......
......@@ -15,7 +15,8 @@ def brew_potions(a, b):
def cast_division_spell(a, b):
if b == 0:
raise ValueError("Attempted to split by zero — the magic council forbids it!")
raise ValueError(
"Attempted to split by zero — the magic council forbids it!")
return a / b
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment