bedrock/tests/conftest.py

11 строки
348 B
Python

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import pytest
@pytest.fixture(scope='session')
def base_url(base_url, request):
return base_url or request.getfuncargvalue('live_server').url