diff --git a/solutions/tests/test_sumrange.py b/solutions/tests/test_sumrange.py index 157a710e3..c95adb01d 100644 --- a/solutions/tests/test_sumrange.py +++ b/solutions/tests/test_sumrange.py @@ -1,5 +1,11 @@ import unittest -from ..sum_range import sum_range +# 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 +# without having to define it again in the test file. This is a common practice in +# Python to organize code into modules and packages for better maintainability and +# reusability. +from solutions.sum_range import sum_range class TestSumRange(unittest.TestCase): """Unit tests for the Sum_range function."""