Update file teste_unitario.py

This commit is contained in:
Angah Desenvolvedores 2025-01-13 17:40:26 +00:00
parent f077dd5dfb
commit 1d923010b6

View File

@ -1,4 +1,5 @@
import pytest
import unittest
from io import BytesIO
from app import app
@ -8,6 +9,11 @@ def client():
with app.test_client() as client:
yield client
class TestExample(unittest.TestCase):
def test_addition(self):
self.assertEqual(1 + 1, 2)
def test_index(client):
response = client.get('/')
assert response.status_code == 200