Fix ModuleNotFoundError: update libs.* imports to src.libs.*#74
Draft
Fix ModuleNotFoundError: update libs.* imports to src.libs.*#74
libs.* imports to src.libs.*#74Conversation
Co-authored-by: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com> Agent-Logs-Url: https://github.com/OWASP-BLT/BLT-API/sessions/56949b7b-b937-4c2b-b01c-ce83525b34e6
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
blt-api | d4ed6fb | Mar 24 2026, 03:38 AM |
Copilot
AI
changed the title
[WIP] Fix imports from libs to src.libs in all files
Fix ModuleNotFoundError: update Mar 24, 2026
libs.* imports to src.libs.*
Contributor
|
@copilot tests are failing |
…ata/.status attributes Co-authored-by: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com> Agent-Logs-Url: https://github.com/OWASP-BLT/BLT-API/sessions/7e6c5eb5-fac7-4f66-bff6-bb3043219694
Contributor
Author
Fixed in d4ed6fb. The 14 failures were caused by two mismatches between test expectations and the Response shims:
All 195 tests now pass. |
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.
Python cannot resolve
libsas a top-level package because the modules live undersrc/libs/, causingModuleNotFoundError: No module named 'libs.data_protection'; 'libs' is not a packageand failing test collection entirely.Changes
from libs.<module> import ...statements tofrom src.libs.<module> import ...across all source and test filesAffected files:
src/main.py,src/models.py,src/handlers/{auth,bugs,domains,organizations,stats,users}.py,tests/test_orm.pyOriginal prompt
This pull request was created from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.