Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 5b57121e

Přidáno uživatelem Michal Seják před asi 4 roky(ů)

Re #8476 - Refactored the application; swagger is not used for code generation anymore, REST API is being implemented from scratch. Migration only, fixing tests.

Zobrazit rozdíly:

tests/unit_tests/rest_api/conftest.py
1 1
import pytest
2
from swagger_server.__main__ import app as flask_app, setup
2
from app import app as flask_app
3 3
from src.db.setup_database import setup_database
4 4

  
5 5

  
6 6
@pytest.fixture(scope="session")
7 7
def server():
8 8
    setup_database()
9
    setup(flask_app)
10
    flask_app.app.testing = True
11
    with flask_app.app.test_client() as s:
9
    flask_app.testing = True
10
    with flask_app.test_client() as s:
12 11
        yield s

Také k dispozici: Unified diff