Skip to content

Tests: add a state attribute to WorldTestBase #5090

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

alwaysintreble
Copy link
Collaborator

What is this fixing or adding?

Just adds a state attribute to WorldTestBase for world tests to use. Unfortunately can't swap all the methods to use it because of how many worlds currently use only some of the helper methods while not using others and using multiworld.state directly for some reason

How was this tested?

Ran tests

@qwint qwint added is: enhancement Issues requesting new features or pull requests implementing new features. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. labels Jun 8, 2025
Copy link
Contributor

@Emerassi Emerassi left a comment

Choose a reason for hiding this comment

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

Now I know what you meant in apworld-dev when you said we should be making a new state instead of referencing multiworld.state. Your proposed change here looks like it will make it easier to achieve your goal of getting people not to use multiworld.state so it looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is: enhancement Issues requesting new features or pull requests implementing new features. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants