From 56d73dd30ac8d954dc3c28a1154d2d4adbaaf70e Mon Sep 17 00:00:00 2001 From: Muhammad Faizan Date: Mon, 4 Nov 2024 09:35:31 +0100 Subject: [PATCH 1/3] test pr for doc_indexer --- doc_indexer/src/utils/settings.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc_indexer/src/utils/settings.py b/doc_indexer/src/utils/settings.py index 5385878a..f7067de1 100644 --- a/doc_indexer/src/utils/settings.py +++ b/doc_indexer/src/utils/settings.py @@ -12,7 +12,6 @@ def is_running_pytest() -> bool: """ return "pytest" in sys.modules - project_root = os.path.dirname(os.path.abspath(__file__)) if is_running_pytest(): @@ -22,7 +21,7 @@ def is_running_pytest() -> bool: config = Config(RepositoryEnv(env_path)) load_dotenv(env_path) else: - logging.warning("No .test.env file found. Using .env file.") + logging.warning("No .test.env file found. Using .env test file.") load_dotenv() else: load_dotenv() From 7272d9d12392c38943ae621b0f14f46a8e8214a7 Mon Sep 17 00:00:00 2001 From: Muhammad Faizan Date: Mon, 4 Nov 2024 09:40:10 +0100 Subject: [PATCH 2/3] updated --- .github/workflows/pull-lint-doc-indexer.yaml | 2 -- .github/workflows/pull-tests-doc-indexer.yaml | 2 -- 2 files changed, 4 deletions(-) diff --git a/.github/workflows/pull-lint-doc-indexer.yaml b/.github/workflows/pull-lint-doc-indexer.yaml index c78036c0..d8067420 100644 --- a/.github/workflows/pull-lint-doc-indexer.yaml +++ b/.github/workflows/pull-lint-doc-indexer.yaml @@ -8,8 +8,6 @@ on: - "release-**" paths: - "doc_indexer/**" - paths-ignore: - - "doc_indexer/**.md" jobs: tests: diff --git a/.github/workflows/pull-tests-doc-indexer.yaml b/.github/workflows/pull-tests-doc-indexer.yaml index 7eab144e..c72d6149 100644 --- a/.github/workflows/pull-tests-doc-indexer.yaml +++ b/.github/workflows/pull-tests-doc-indexer.yaml @@ -8,8 +8,6 @@ on: - "release-**" paths: - "doc_indexer/**" - paths-ignore: - - "doc_indexer/**.md" jobs: tests: From a02cf6afe76583584e79dc0be07898287690dd86 Mon Sep 17 00:00:00 2001 From: Muhammad Faizan Date: Mon, 4 Nov 2024 09:41:05 +0100 Subject: [PATCH 3/3] updated --- doc_indexer/src/utils/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc_indexer/src/utils/settings.py b/doc_indexer/src/utils/settings.py index f7067de1..5385878a 100644 --- a/doc_indexer/src/utils/settings.py +++ b/doc_indexer/src/utils/settings.py @@ -12,6 +12,7 @@ def is_running_pytest() -> bool: """ return "pytest" in sys.modules + project_root = os.path.dirname(os.path.abspath(__file__)) if is_running_pytest(): @@ -21,7 +22,7 @@ def is_running_pytest() -> bool: config = Config(RepositoryEnv(env_path)) load_dotenv(env_path) else: - logging.warning("No .test.env file found. Using .env test file.") + logging.warning("No .test.env file found. Using .env file.") load_dotenv() else: load_dotenv()