Skip to content
Snippets Groups Projects
Commit e3fa6690 authored by Razzan Yoni's avatar Razzan Yoni
Browse files

feat: implement add functionality

parent d23729b1
No related merge requests found
Pipeline #62372 canceled with stages
[pytest]
addopts = -v --cache-clear -rf --cov=src/app --cov-report=term --cov-report=html --maxfail=10
console_output_style = count
python_classes = Test*
python_functions = test_*
testpaths = tests
\ No newline at end of file
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
from .app import *
from .mymath import *
class Math:
@staticmethod
def add(x: float, y: float) -> float:
return x + y
\ No newline at end of file
import src.app.utils.mymath.addition as addition
def main():
print("Hello, World!")
if __name__ == "__main__":
main()
print(addition.Math.add(1, 2))
from .utils import *
\ No newline at end of file
from .mymath import *
\ No newline at end of file
import src.app.utils.mymath.addition as addition
class TestMath:
def test_normal_scenario_1(self):
assert addition.Math.add(1, 2) == 3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment