From 189f07595a1a11bfdc7f25b8971f7178f4a1b677 Mon Sep 17 00:00:00 2001 From: Juliya Smith Date: Fri, 27 Sep 2024 20:18:32 -0500 Subject: [PATCH] test: debug2 --- tests/conftest.py | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index a622563..27677b3 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -40,20 +40,6 @@ } -@pytest.fixture(scope="session", autouse=True) -def from_tests_dir(): - # Makes default project correct. - here = Path(__file__).parent - orig = Path.cwd() - if orig != here: - os.chdir(f"{here}") - - yield - - if Path.cwd() != orig: - os.chdir(f"{orig}") - - @pytest.fixture(scope="session", autouse=True) def config(): with ape.config.isolate_data_folder(): @@ -150,8 +136,8 @@ def compiler(compiler_manager): @pytest.fixture(scope="session", autouse=True) def project(config): project_source_dir = Path(__file__).parent - - return ape.Project(project_source_dir) + os.chdir(project_source_dir) + return config.local_project # # # For increasing speed of debugging tests, allows not having # # to re-compile every time.