diff --git a/tests/client/settings.py b/tests/client/settings.py index 516da19c..53c56b54 100644 --- a/tests/client/settings.py +++ b/tests/client/settings.py @@ -19,7 +19,7 @@ # However, if you have executed another commercial license agreement # with Crate these terms will supersede the license and you may use the # software solely pursuant to the terms of the relevant commercial agreement. -from __future__ import absolute_import + from pathlib import Path diff --git a/tests/testing/settings.py b/tests/testing/settings.py deleted file mode 100644 index eb99a055..00000000 --- a/tests/testing/settings.py +++ /dev/null @@ -1,9 +0,0 @@ -from pathlib import Path - - -def crate_path() -> str: - return str(project_root() / "parts" / "crate") - - -def project_root() -> Path: - return Path(__file__).parent.parent.parent diff --git a/tests/testing/test_layer.py b/tests/testing/test_layer.py index 12b08a77..7270d974 100644 --- a/tests/testing/test_layer.py +++ b/tests/testing/test_layer.py @@ -37,10 +37,9 @@ prepend_http, wait_for_http_url, ) +from tests.client.settings import crate_path from tests.conftest import download_cratedb -from .settings import crate_path - class LayerUtilsTest(TestCase): def test_prepend_http(self):