Skip to content

Fallback to using the default adapter controller when no module in API - #61

Merged
GDYendell merged 7 commits into
mainfrom
60_default_module_instead_of_raise
Mar 11, 2025
Merged

GDYendell merged 7 commits into
mainfrom
60_default_module_instead_of_raise

Conversation

@shihab-dls

@shihab-dls shihab-dls commented Mar 7, 2025 •

Copy link
Copy Markdown
Collaborator

Fixes #60, and Fixes #22

This PR sets module = "" if no module found; A test is also written for controller.initialise()

@codecov

codecov Bot commented Mar 7, 2025 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.04%. Comparing base (4e398c0) to head (02227c9).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #61      +/-   ##
==========================================
+ Coverage   87.11%   91.04%   +3.93%     
==========================================
  Files          11       11              
  Lines         458      458              
==========================================
+ Hits          399      417      +18     
+ Misses         59       41      -18     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@shihab-dls
shihab-dls requested a review from GDYendell March 7, 2025 14:11
@shihab-dls

Copy link
Copy Markdown
Collaborator Author

Decided to handle #22 in this PR as well, as I had already written a test; test is not sufficient to close that issue though, so please hold off on review for now :)

@GDYendell GDYendell left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code change is good, but the test could be improved

Comment thread tests/test_controllers.py Resolved
Comment thread tests/test_controllers.py Resolved
@shihab-dls
shihab-dls requested a review from GDYendell March 10, 2025 14:11
@GDYendell
GDYendell merged commit 3d6b703 into main Mar 11, 2025
@GDYendell
GDYendell deleted the 60_default_module_instead_of_raise branch March 11, 2025 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fallback to using the default adapter controller instead of crashing when given metadata without a module Add test for OdinController.initialise

2 participants