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

Tests: Clean up some of the fill test helpers a bit #2935

Merged
merged 3 commits into from
May 2, 2024

Conversation

alwaysintreble
Copy link
Collaborator

What is this fixing or adding?

Cleans up a few of the function helpers in test_fill with the more modern style conventions, mostly just strings. Moves generate_multiworld, generate_locations and generate_items to the base package since #2883 wants to use them so will create merge conflicts, which I'm ok with handling after.

How was this tested?

tests

@alwaysintreble alwaysintreble added is: refactor/cleanup Improvements to code/output readability or organizization. affects: core Issues/PRs that touch core and may need additional validation. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. labels Mar 11, 2024
@github-actions github-actions bot removed the affects: core Issues/PRs that touch core and may need additional validation. label Mar 11, 2024
@BadMagic100 BadMagic100 self-requested a review March 14, 2024 16:08
Copy link
Contributor

@Ixrec Ixrec left a comment

Choose a reason for hiding this comment

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

Code changes LGTM, and for me the new code is noticeably easier to read.

Ran all tests locally in my PyCharm on both main and this branch without any failures.

test/general/__init__.py Show resolved Hide resolved
Copy link
Collaborator

@BadMagic100 BadMagic100 left a comment

Choose a reason for hiding this comment

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

Code looks good, and moving the helpers out of test_fill is definitely desirable

@alwaysintreble alwaysintreble added affects: core Issues/PRs that touch core and may need additional validation. waiting-on: core-review Issue/PR has been peer-reviewed and is ready to be merged or needs input from a core maintainer. and removed waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. labels Mar 26, 2024
@NewSoupVi NewSoupVi merged commit 07d9d61 into ArchipelagoMW:main May 2, 2024
16 checks passed
jnschurig pushed a commit to Tranquilite0/Archipelago-SoulBlazer that referenced this pull request Jun 13, 2024
* Tests: Clean up some of the fill test helpers a bit

* fix some formatting

---------

Co-authored-by: NewSoupVi <[email protected]>
qwint pushed a commit to qwint/Archipelago that referenced this pull request Jun 24, 2024
* Tests: Clean up some of the fill test helpers a bit

* fix some formatting

---------

Co-authored-by: NewSoupVi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: core Issues/PRs that touch core and may need additional validation. is: refactor/cleanup Improvements to code/output readability or organizization. waiting-on: core-review Issue/PR has been peer-reviewed and is ready to be merged or needs input from a core maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants