Skip to content

Commit

Permalink
test: output cwd and contents
Browse files Browse the repository at this point in the history
  • Loading branch information
robberwick committed Sep 15, 2024
1 parent 4e0c613 commit 0f6a5e3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,13 @@ def mocked_responses():

@pytest.fixture
def graph_response_json():
# print the contents of the current working directory using pathlib
import pathlib

print(pathlib.Path().absolute())
# print the list of files and directories of the current working directory
test_dir = pathlib.Path() / "tests" / "data"
print(list(test_dir.iterdir()))

with open("data/graph_response.json") as f:
return json.loads(f.read())

0 comments on commit 0f6a5e3

Please sign in to comment.