20 lines
458 B
Python
20 lines
458 B
Python
import pytest
|
|
|
|
from atst.app import make_app, make_deps, make_config
|
|
from tests.mocks import MockApiClient, MockRequestsClient
|
|
|
|
|
|
@pytest.fixture
|
|
def app():
|
|
TEST_DEPS = {
|
|
"authz_client": MockApiClient("authz"),
|
|
"requests_client": MockRequestsClient("requests"),
|
|
"authnid_client": MockApiClient("authnid"),
|
|
}
|
|
|
|
config = make_config()
|
|
deps = make_deps(config)
|
|
deps.update(TEST_DEPS)
|
|
|
|
return make_app(config, deps)
|