Skip to content

Commit

Permalink
python app workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin op iMac committed Oct 31, 2023
1 parent 01a1ade commit 31b0c52
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
5 changes: 4 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ def index():

@app.route('/cow')
def cow():
return 'MOoooOo!'
return 'MOoooOo!'

def add_numbers(a, b):
return a + b
15 changes: 4 additions & 11 deletions tests/test_main.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
import pytest
from main import add_numbers

def add_numbers(a, b):
return a + b


def main():
result = add_numbers(2, 3)
print(result)


if __name__ == '__main__':
main()
def test_add_numbers():
assert add_numbers(2, 3) == 5

0 comments on commit 31b0c52

Please sign in to comment.