Thanks to visit codestin.com
Credit goes to github.com

Skip to content

CI/CD : Test workflow failing due to incorrect test file placement #4751

@mdkaifansari04

Description

@mdkaifansari04

Description:
The GitHub Actions test job is failing with this error:

ImportError: 'tests' module incorrectly imported from '/home/runner/work/BLT/BLT/website/tests'. Expected '/home/runner/work/BLT/BLT/website'.

This happens because the test files are not in the correct location.
They need to be moved or properly structured so Django can detect them.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions