Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

remove absolute path dependencies in tests [#50] #51

Merged
merged 3 commits into from
Nov 8, 2021

Conversation

stevenbenjamin
Copy link
Contributor

Purpose

Some fixtures contain absolute paths (e.g. for data files). This means they only run from the project root, and individual tests won't run from e.g. pycharm which runs from the current working directory.

Changes

Refactor config to share a load_file method that searches

  • the FIDESOPS_CONFIG_PATH var
  • cwd
  • parent
  • ~

Ticket

50

Copy link
Contributor

@eastandwestwind eastandwestwind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just 2 nits, otherwise good to go. Nice work figuring out this path issue! Here's the follow-up ticket for documentation- #52

src/fidesops/core/config.py Outdated Show resolved Hide resolved
src/fidesops/core/config.py Outdated Show resolved Hide resolved
@eastandwestwind eastandwestwind merged commit 78c63e8 into main Nov 8, 2021
@eastandwestwind eastandwestwind deleted the test_file_paths branch November 8, 2021 22:59
@stevenbenjamin stevenbenjamin linked an issue Nov 15, 2021 that may be closed by this pull request
sanders41 pushed a commit that referenced this pull request Sep 22, 2022
* remove absolute path dependencies in tests

* fixed method doc on load order

* minor cleanup

Co-authored-by: Steven Benjamin <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Absolute path references in tests
2 participants