diff options
author | Vijayakumar A <36878324+kumvijaya@users.noreply.github.com> | 2024-09-12 00:55:44 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-12 00:55:44 +0530 |
commit | 46c208142a528a8d09600827a07238f6dbc79e37 (patch) | |
tree | 9993e52f0b1e336f9d9d1804d935eeb4717266dd /src/tests | |
parent | 6482aeb3c474370bdd667fc038ef5f2ccc6353fa (diff) | |
parent | 505fd94fd48b545da18487ce3aa202a92e6835e7 (diff) | |
download | vyos-workflow-test-temp-46c208142a528a8d09600827a07238f6dbc79e37.tar.gz vyos-workflow-test-temp-46c208142a528a8d09600827a07238f6dbc79e37.zip |
Merge pull request #50 from kumvijaya/current
Test 1
Diffstat (limited to 'src/tests')
-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 |