Stardew Valley: Use new asserts in tests (#4621)
* changes * cherry pick stuff * use newly create methods more * use new assets to ease readability * remove unneeded assert * add assert region adapters * use new asserts yay * self review * self review * review * replace parrot express with transportation constant * bullshit commit again * revert a bunch of off topic changes * these changes seems to be on topic * revert some undesired merge changes * review imports * use type instead of instance in some options * properly return super * review * change one str to use a constnat
This commit is contained in:
@@ -7,7 +7,7 @@ from ... import StardewValleyWorld
|
||||
from ...options import StardewValleyOptions, StardewValleyOption
|
||||
|
||||
|
||||
def parse_class_option_keys(test_options: dict[str | StardewValleyOption, Any] | None) -> dict:
|
||||
def parse_class_option_keys(test_options: dict[str | type[StardewValleyOption], Any] | None) -> dict:
|
||||
""" Now the option class is allowed as key. """
|
||||
if test_options is None:
|
||||
return {}
|
||||
@@ -25,7 +25,7 @@ def parse_class_option_keys(test_options: dict[str | StardewValleyOption, Any] |
|
||||
return parsed_options
|
||||
|
||||
|
||||
def fill_dataclass_with_default(test_options: dict[str | StardewValleyOption, Any] | None) -> StardewValleyOptions:
|
||||
def fill_dataclass_with_default(test_options: dict[str | type[StardewValleyOption], Any] | None) -> StardewValleyOptions:
|
||||
test_options = parse_class_option_keys(test_options)
|
||||
|
||||
filled_options = {}
|
||||
|
||||
Reference in New Issue
Block a user