Skip to content

Commit

Permalink
test: debug2
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Sep 28, 2024
1 parent fb8f602 commit 189f075
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 189f075

Please sign in to comment.