GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — datapane/python-client/tests/conftest.py at main · datapane/datapane Expand file tree/ Copy pathconftest.pyMore file actions 34 lines (23 loc) · 890 Bytes / Copy pathconftest.pyFile metadata and controls34 lines (23 loc) · 890 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 # ruff: noqa: E402 # We need to modify environment variables before importing Datapane import os os.environ["DP_TEST_ENV"] = "true" import pytest from datapane import DPMode, set_dp_mode from datapane.client import config from datapane.client.utils import _setup_dp_logging @pytest.fixture(autouse=True) def dp_setup(request, monkeypatch, tmp_path): """ Set up the common environment and clean default config for each test. Skip optional init tasks with:: @pytest.mark.skip_init When writing fixtures which need to change the config (eg dp_login) see docs: https://docs.pytest.org/en/stable/reference/fixtures.html#fixture-instantiation-order """ # Init API with full debug logging set_dp_mode(DPMode.SCRIPT) _setup_dp_logging(verbosity=2) # Optional init steps if "skip_dp_init" not in request.keywords: config.init() |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |