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

- Add tests for BMSLD parse and build #77

Merged
merged 2 commits into from
Sep 13, 2023

Conversation

ThanatosGit
Copy link
Contributor

  • Add tests for BMSLD methods

- Add tests for BMSLD methods
@codecov
Copy link

codecov bot commented Sep 12, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.95% 🎉

Comparison is base (3e60836) 72.17% compared to head (bed95cd) 73.13%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #77      +/-   ##
==========================================
+ Coverage   72.17%   73.13%   +0.95%     
==========================================
  Files          56       56              
  Lines        3030     3030              
==========================================
+ Hits         2187     2216      +29     
+ Misses        843      814      -29     
Files Changed Coverage Δ
...rc/mercury_engine_data_structures/formats/bmsld.py 96.22% <100.00%> (+49.05%) ⬆️

... and 1 file with indirect coverage changes

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

tests/formats/test_bmsld.py Outdated Show resolved Hide resolved
tests/formats/test_bmsld.py Outdated Show resolved Hide resolved
tests/formats/test_bmsld.py Outdated Show resolved Hide resolved
tests/formats/test_bmsld.py Outdated Show resolved Hide resolved
@@ -166,7 +166,7 @@ def get_actor_group(self, group_name: str) -> Container:
None
)
if group is None:
raise Exception(f"No group found with name for {group_name}")
raise ValueError(f"No group found with name for {group_name}")
Copy link
Contributor

Choose a reason for hiding this comment

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

tbh I'd prob call this a KeyError, even if it isn't technically a dictionary. @henriquegemignani thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed it to KeyError now. Both are kinda matching / non-matching. It's not a dict but very similar lookup. Otherwise you could say, you just used a wrong value for the parameter.

(just forced push as the last two changes were pretty small)

Copy link
Member

Choose a reason for hiding this comment

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

It's a container-like enough for me.

tests/formats/test_bmsld.py Outdated Show resolved Hide resolved
@henriquegemignani henriquegemignani added this pull request to the merge queue Sep 13, 2023
Merged via the queue into randovania:main with commit 48a7447 Sep 13, 2023
10 checks passed
@ThanatosGit ThanatosGit deleted the BMSLD-Tests branch September 23, 2023 09:22
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.

None yet

3 participants