Skip to content

Commit

Permalink
fixed py formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeinab15 committed Dec 29, 2024
1 parent 07fea3d commit 37f37d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,8 @@
},

// Enable/disable update table of contents on save
"markdown.extension.toc.updateOnSave": false
"markdown.extension.toc.updateOnSave": false,
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
}
}
4 changes: 3 additions & 1 deletion solutions/tests/test_sumrange.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import unittest

# The line `from solutions.sum_range import sum_range` is importing the
# `sum_range` function from a module named `sum_range` located in a package named
# `solutions`. This allows you to use the `sum_range` function in your test cases
Expand All @@ -7,6 +8,7 @@
# reusability.
from solutions.sum_range import sum_range


class TestSumRange(unittest.TestCase):
"""Unit tests for the Sum_range function."""

Expand Down Expand Up @@ -37,4 +39,4 @@ def test_large_range_reversed(self):
def test_float_range(self):
"""Test with a range that includes floats."""
with self.assertRaises(AssertionError):
sum_range(0.5, 3.5)
sum_range(0.5, 3.5)

0 comments on commit 37f37d1

Please sign in to comment.