Fix path dependency in convert_to_path
test
#749
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix Minor Test Issue in
convert_to_path
This PR addresses an error that's raised in
type_dec_unit_test.py:test_convert_to_path
when run from within the "tests" folder, as opposed to from the "floris" directory. As a result of #739,convert_to_path
attempts to validate three separate path relationships to return a path that exists, or fails, so the updated unit test now reflects that usage, and checks for aFileExistsError
infloris/tests/tests/
regardless of wherepytest
is invoked.Related issue
N/A
Impacted areas of the software
type_dec_unit_test.py:test_convert_to_path
: Updated the third subtest to reflect the updated logic ofconvert_to_path
Additional supporting information
N/A
Test results, if applicable
All tests pass, regardless of where pytest is run from.