From 752d69c0d75ce73d97e3a1fa0f8aee37e5dbb41c Mon Sep 17 00:00:00 2001 From: Brad Macdonald Date: Thu, 16 Nov 2023 09:59:57 -0700 Subject: [PATCH] adjusts class and tests paths --- 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 0d13c460..168c9263 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 a7bc16cd..02beeb18 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