Skip to content

[Bug] Hardcoded personal developer path in test_script.py causes FileNotFoundError #112

Open

Description

@muskan-creates352

Description

In test_script.py (line 12), the pipeline test directory is currently hardcoded to an absolute personal local path:

TEST_DIR = Path("/home/fivos/CascadeProjects/glossAPI/corpus_test")

Impact

Any new contributor, student, or automated runner executing python test_script.py encounters a FileNotFoundError because /home/fivos/... does not exist on external environments.

Proposed Solution

Make TEST_DIR portable by dynamically resolving it relative to the repository samples directory:

TEST_DIR = Path(__file__).resolve().parent / "samples" / "lightweight_pdf_corpus"

or allowing an override via environment variable / CLI argument with a fallback to existing sample data.

I would like to submit a PR to fix this and make test_script.py runnable out of the box.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions