 3869a25944
			
		
	
	3869a25944
	
	
	
		
			
			* Tests: assign the World to WorldTestBase and add a player field (because I like typing self.player far more than random 1's all over the place) * more accurate docstring for world and multiworld * use self.player within the class
		
			
				
	
	
		
			17 lines
		
	
	
		
			457 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			457 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from . import MessengerTestBase
 | |
| from ..subclasses import MessengerLocation
 | |
| 
 | |
| 
 | |
| class LocationsTest(MessengerTestBase):
 | |
|     options = {
 | |
|         "shuffle_shards": "true",
 | |
|     }
 | |
| 
 | |
|     @property
 | |
|     def run_default_tests(self) -> bool:
 | |
|         return False
 | |
| 
 | |
|     def test_locations_exist(self) -> None:
 | |
|         for location in self.world.location_name_to_id:
 | |
|             self.assertIsInstance(self.multiworld.get_location(location, self.player), MessengerLocation)
 |