Skip to content

Commit

Permalink
adjusts class and tests paths
Browse files Browse the repository at this point in the history
  • Loading branch information
BWMac committed Nov 16, 2023
1 parent 0d89003 commit 752d69c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/agoradatatools/gx.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(
def _get_data_context_location(self) -> str:
"""Gets the path to the great_expectations directory"""
script_dir = os.path.dirname(os.path.realpath(__file__))
gx_directory = os.path.join(script_dir, "../great_expectations")
gx_directory = os.path.join(script_dir, "great_expectations")
return gx_directory

def _check_if_expectation_suite_exists(self) -> bool:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_gx.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_that_get_data_context_location_returns_the_path_to_the_gx_directory(
self,
):
expected = os.path.join(
os.getcwd(), "src", "agoradatatools", "../", "great_expectations"
os.getcwd(), "src", "agoradatatools", "great_expectations"
)
result = self.good_runner._get_data_context_location()
assert result == expected
Expand Down

0 comments on commit 752d69c

Please sign in to comment.