import pytest import unittest from io import BytesIO from app import app @pytest.fixture def client(): app.config['TESTING'] = True 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 assert b'