DiamondLightSource / DiamondLightSource/httomo

Don't assume cwd is root dir in relative paths in `conftest.py`

Open
#320 0 comments 0 reactions 0 assignees View on GitHub
minor testing
Dominant language
Python
Stars
10
Forks
5
Avg merge
5d 17h
Merged PRs (30d)
1

Description

There's lots of filepaths in `conftest.py` which are relative to the root dir, and so if tests are executed in a non-root dir then these paths will be incorrect and cause test failures: https://github.com/DiamondLightSource/httomo/blob/833936aaa1049feac5c55a2195e99454dee85fcc/tests/conftest.py#L195-L294

Replacement with something like `Path(__file__) / "path/relative/to/conftest/file"` would resolve this

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.