Skip to content
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

Merged
merged 3 commits into from
Nov 9, 2023
Merged

MSR - Support .bmsmd #97

merged 3 commits into from
Nov 9, 2023

Conversation

dyceron
Copy link
Contributor

@dyceron dyceron commented Nov 6, 2023

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.

github-actions[bot]
github-actions bot previously approved these changes Nov 6, 2023
Copy link

codecov bot commented Nov 6, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9f37014) 73.84% compared to head (b913f01) 73.94%.
Report is 4 commits behind head on main.

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              
Files Coverage Δ
...mercury_engine_data_structures/formats/__init__.py 100.00% <100.00%> (ø)
...rc/mercury_engine_data_structures/formats/bmsmd.py 100.00% <100.00%> (ø)

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


def test_bmsmd(samus_returns_path):
file_path = samus_returns_path.joinpath(r"gui\minimaps\c10_samus.bmsmd")
parse_and_build_compare(
Copy link
Contributor

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.

from mercury_engine_data_structures.formats.bmsmd import Bmsmd


def test_bmsmd(samus_returns_tree, bmsmd_path):
Copy link
Contributor

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.

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
Copy link
Contributor

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.

Copy link
Contributor

@ThanatosGit ThanatosGit left a 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

@ThanatosGit ThanatosGit added this pull request to the merge queue Nov 9, 2023
Merged via the queue into randovania:main with commit a6d8b6f Nov 9, 2023
10 checks passed
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.

2 participants