GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — datapane/python-client/tests/conftest.py at main · datapane/datapane

Expand file tree

/

conftest.py

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
34 lines (23 loc) · 890 Bytes
/

conftest.py

Copy path

File metadata and controls

34 lines (23 loc) · 890 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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.