[Local Dev] Fix pytest config#9670
Merged
Merged
Conversation
b36f5c9 to
33d0a0c
Compare
Contributor
📊 Diff Coverage Report📂 Click to view full coverage detailsDiff CoverageDiff: origin/development...HEAD, staged and unstaged changesNo lines with coverage information in this diff. |
liranbg
approved these changes
May 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
📝 Description
Fixed a small bug in the pytest config that caused import errors when running the
pytestcli directly.🛠️ Changes Made
Updated the
pythonpathsetting of the pytest config to include the root directory.✅ Checklist
🧪 Testing
🔗 References
🚨 Breaking Changes?
🔍️ Additional Notes
Basically the setting to include
./server/pywhen running from the root, excluded the root itself which is also needed because some test files import fromtests.*. This issue was not as apparent because if you run pytest through python (python -m pytest) the root is already part of the pythonpath through the python invocation and wont get removed. This PR thus leaves the correct behaviour ofpython -m pytestintact while bringingpytestinline with it.