Update file teste_unitario.py
This commit is contained in:
parent
f077dd5dfb
commit
1d923010b6
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user