Skip to content

Commit 140ff9b

Browse files
committed
Added simple function and script for testing
1 parent 4759fc4 commit 140ff9b

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

func.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def sum(x: float, y: float) -> float:
2+
return x + y

requirements.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
annotated-types==0.5.0
2+
anyio==3.7.1
3+
fastapi==0.101.1
4+
idna==3.4
5+
numpy==1.25.2
6+
pandas==2.0.3
7+
pydantic==2.3.0
8+
pydantic_core==2.6.3
9+
python-dateutil==2.8.2
10+
pytz==2023.3
11+
six==1.16.0
12+
sniffio==1.3.0
13+
starlette==0.27.0
14+
typing_extensions==4.7.1
15+
tzdata==2023.3

test_func.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import unittest, func
2+
3+
class Test(unittest.TestCase):
4+
5+
def test_sum(self):
6+
self.assertEqual(func.sum(2,3), 5)
7+
8+
if __name__ == "__main__":
9+
unittest.main()

0 commit comments

Comments
 (0)