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'