pyceo/tests/conftest_ceo.py

14 lines
442 B
Python
Raw Permalink Normal View History

2021-08-23 19:01:24 -04:00
import pytest
2021-08-28 01:51:48 -04:00
from .utils import gssapi_token_ctx
2021-08-23 19:01:24 -04:00
@pytest.fixture(scope='module')
def cli_setup(app_process):
# Running the client and the server in the same process would be very
# messy because they would be sharing the same environment variables,
# Kerberos cache, and registered utilities (via zope). So we're just
# going to start the app in a child process intead.
2021-08-28 01:51:48 -04:00
with gssapi_token_ctx('ctdalek'):
2021-08-23 19:01:24 -04:00
yield