From 5e50b4a7f1de58f4bd03ffe86aa112a11859bce4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tha=C3=ADs=20Ferreira?= Date: Tue, 17 Dec 2024 16:48:16 +0000 Subject: [PATCH] Update file teste_unitario.py --- teste_unitario.py | 85 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 teste_unitario.py diff --git a/teste_unitario.py b/teste_unitario.py new file mode 100644 index 0000000..dc21abe --- /dev/null +++ b/teste_unitario.py @@ -0,0 +1,85 @@ +import pytest +from io import BytesIO +from app import app.py + +@pytest.fixture +def client(): + app.config['TESTING'] = True + with app.test_client() as client: + yield client + +def test_index(client): + response = client.get('/') + assert response.status_code == 200 + assert b'