-
Notifications
You must be signed in to change notification settings - Fork 12
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
MSR - Support .bmsmd #97
Conversation
for more information, see https://pre-commit.ci
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #97 +/- ##
==========================================
+ Coverage 73.84% 73.94% +0.10%
==========================================
Files 60 61 +1
Lines 3101 3113 +12
==========================================
+ Hits 2290 2302 +12
Misses 811 811
☔ View full report in Codecov by Sentry. |
tests/formats/test_bmsmd.py
Outdated
|
||
def test_bmsmd(samus_returns_path): | ||
file_path = samus_returns_path.joinpath(r"gui\minimaps\c10_samus.bmsmd") | ||
parse_and_build_compare( |
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.
Can you use the parse_build_compare_editor
here instead? Then the uncovered construct_class
method would be in the tests, too.
tests/formats/test_bmsmd.py
Outdated
from mercury_engine_data_structures.formats.bmsmd import Bmsmd | ||
|
||
|
||
def test_bmsmd(samus_returns_tree, bmsmd_path): |
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.
def test_bmsmd(samus_returns_tree):
bmsmd_path
is defined one line later and is not a parameter.
tests/formats/test_bmsmd.py
Outdated
def test_bmsmd(samus_returns_tree, bmsmd_path): | ||
bmsmd_path = samus_returns_path.joinpath(r"gui\minimaps\c10_samus.bmsmd") | ||
parse_build_compare_editor( | ||
Bmsmd, samus_returns_tree, file_path |
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.
bmsd_path
not file_path
. file_path
is nowhere defined.
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.
Just squashed the 9 commits for the test file :p
I'm not sure what most of these unknowns are and I don't know if all the data types in
sub_scenarios
is 100% correct.