 96d7a3a64c
			
		
	
	96d7a3a64c
	
	
	
		
			
			* - Can Catch every fish doesn't need fishing rods if they are not shuffled * add has_max_fishing_rod * add test for master angler + vanilla tools --------- Co-authored-by: Alex Gilbert <alexgilbert@yahoo.com>
		
			
				
	
	
		
			21 lines
		
	
	
		
			632 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			632 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from typing import ClassVar
 | |
| 
 | |
| from test.TestBase import WorldTestBase
 | |
| from .. import StardewValleyWorld
 | |
| 
 | |
| 
 | |
| class SVTestBase(WorldTestBase):
 | |
|     game = "Stardew Valley"
 | |
|     world: StardewValleyWorld
 | |
|     player: ClassVar[int] = 1
 | |
| 
 | |
|     def world_setup(self, *args, **kwargs):
 | |
|         super().world_setup(*args, **kwargs)
 | |
|         if self.constructed:
 | |
|             self.world = self.multiworld.worlds[self.player]
 | |
| 
 | |
|     @property
 | |
|     def run_default_tests(self) -> bool:
 | |
|         # world_setup is overridden, so it'd always run default tests when importing SVTestBase
 | |
|         return type(self) is not SVTestBase and super().run_default_tests
 |