Добавлен пайплайн и приложение
[inno_pipe.git] / tests / test_app.py
blob1c6d6738f840331b4ea0b6514ba10cce5456095e
1 import pytest
2 from flask import Flask
3 from app import index
5 @pytest.fixture
6 def app():
7 app = Flask(__name__)
8 app.add_url_rule("/", "index", index)
9 return app
11 def test_index(app, client):
12 response = client.get("/")
13 expected_message = b'Простое веб-приложение'
14 assert response.data == expected_message
15 assert response.status_code == 200