From 50311aca151cb2f1f1a752b5b225c01237e19a31 Mon Sep 17 00:00:00 2001 From: Brad Macdonald Date: Thu, 16 Nov 2023 09:56:13 -0700 Subject: [PATCH] adjusts paths in class and tests --- src/agoradatatools/gx.py | 2 +- tests/test_gx.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agoradatatools/gx.py b/src/agoradatatools/gx.py index 09d2cedf..0d13c460 100644 --- a/src/agoradatatools/gx.py +++ b/src/agoradatatools/gx.py @@ -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: diff --git a/tests/test_gx.py b/tests/test_gx.py index c01fc5fe..a7bc16cd 100644 --- a/tests/test_gx.py +++ b/tests/test_gx.py @@ -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