-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: dojo-lang tests with default namespace #2422
fix: dojo-lang tests with default namespace #2422
Conversation
WalkthroughOhayo, sensei! The changes in this pull request enhance the configuration handling in the Changes
Sequence Diagram(s)sequenceDiagram
participant Test as Test Framework
participant Inputs as Inputs Map
participant Config as Configuration
Test->>Inputs: Request configuration (cfg_set)
alt Configuration exists
Inputs-->>Test: Return cfg_set
else Configuration missing
Test->>Config: Create default CfgSet
Config-->>Test: Return default cfg_set
end
Tip OpenAI O1 model for chat
Recent review detailsConfiguration used: .coderabbit.yaml Files selected for processing (1)
Additional comments not posted (4)
TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2422 +/- ##
==========================================
+ Coverage 67.89% 68.07% +0.17%
==========================================
Files 364 364
Lines 47773 47774 +1
==========================================
+ Hits 32435 32521 +86
+ Misses 15338 15253 -85 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch thanks @remybar.
Description
Now that
namespace
configuration has been moved fromScarb.toml
todojo_<PROFILE>.toml
,dojo-lang
code expansion tests have no more default namespace in their configuration leading to several errors likeerror: The namespace '' can only contain characters (a-z/A-Z), digits (0-9) and underscore (_).
for nominal cases.This PR adds a default namespace
dojo_test
if the test configuration is empty.Tests
Added to documentation?
Checklist
scripts/prettier.sh
,scripts/rust_fmt.sh
,scripts/cairo_fmt.sh
)scripts/clippy.sh
,scripts/docs.sh
)Summary by CodeRabbit
New Features
Bug Fixes
Documentation