From e96cefe7de2882171ddc4f550d021c042a5c810b Mon Sep 17 00:00:00 2001 From: Martin op iMac Date: Tue, 31 Oct 2023 13:34:39 +0100 Subject: [PATCH] test deploy farm service not on Github --- tests/test_main.py | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/tests/test_main.py b/tests/test_main.py index 495a43a..21ddf3d 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -1,23 +1,12 @@ -# Import what we need for testing -import unittest -from main import app -class TestApp(unittest.TestCase): - - def test_index(self): - # Create a test client using the Flask app context - with app.test_client() as client: - # Make a GET request to the index route - response = client.get('/') - # Check that the response status code is 200 OK - self.assertEqual(response.status_code, 200) - - def test_cow(self): - # Create a test client using the Flask app context - with app.test_client() as client: - # Make a GET request to the cow route - response = client.get('/cow') - # Check that the response status code is 200 OK - self.assertEqual(response.status_code, 200) - # Check that the response data is the expected string - # self.assertEqual(response.data.decode('utf-8'), 'MOoooOo!') +def add_numbers(a, b): + return a + b + + +def main(): + result = add_numbers(2, 3) + print(result) + + +if __name__ == '__main__': + main()