diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/test.py | 7 | ||||
-rw-r--r-- | src/tests/test_utils.py | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/tests/test.py b/src/tests/test.py new file mode 100644 index 0000000..46803bd --- /dev/null +++ b/src/tests/test.py @@ -0,0 +1,7 @@ +from typing import List
+
+import os
+
+def sum_even_numbers(numbers: List[int]) -> int:
+ """Given a list of integers, return the sum of all even numbers in the list."""
+ return sum(num for num in numbers if num % 2 == 0)
\ No newline at end of file diff --git a/src/tests/test_utils.py b/src/tests/test_utils.py index b7b7f22..8ae63ae 100644 --- a/src/tests/test_utils.py +++ b/src/tests/test_utils.py @@ -15,6 +15,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. from unittest import TestCase +import os class TestVyOSUtils(TestCase): def test_key_mangling(self): from vyos.utils.dict import mangle_dict_keys |