Skip to content

Commit

Permalink
bomba
Browse files Browse the repository at this point in the history
  • Loading branch information
Lojlvenom committed Nov 21, 2024
1 parent 38f5941 commit 9e6175f
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from flask import Flask

app = Flask(__name__)
app.config['TESTING'] = True

@app.route("/")
def hello_world():
return "<p>Hello, !</p>"

if __name__ == "__main__":
app.run(debug=True)
9 changes: 9 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
blinker==1.9.0
click==8.1.7
Flask==3.1.0
itsdangerous==2.2.0
Jinja2==3.1.4
MarkupSafe==3.0.2
setuptools==75.1.0
Werkzeug==3.1.3
wheel==0.44.0
15 changes: 15 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import unittest
from app import app

class TestHelloWorld(unittest.TestCase):

def setUp(self):
self.client = app.test_client()

def test_hello_world(self):
response = self.client.get('/')
self.assertEqual(response.status_code, 200)
self.assertIn(b'Hello, World!', response.data)

if __name__ == '__main__':
unittest.main()

0 comments on commit 9e6175f

Please sign in to comment.