Skip to content

Commit

Permalink
fix toml location import
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Sep 11, 2023
1 parent 594b618 commit 2b92f4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/website/docs/conftest.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import os
import pytest

from tests.utils import patch_home_dir, autouse_test_storage, preserve_environ, duckdb_pipeline_location, wipe_pipeline

@pytest.fixture(autouse=True)
def set_working_dir(request):
# always set working dir to main website folder
dname = os.path.dirname(request.module.__file__)
os.chdir(dname)
# imports need to be here, otherwise changing the workdir will not change the location where the toml files are looked up in tim
from tests.utils import patch_home_dir, autouse_test_storage, preserve_environ, duckdb_pipeline_location, wipe_pipeline


def pytest_configure(config):
# push sentry to ci
Expand Down

0 comments on commit 2b92f4c

Please sign in to comment.