Tests: add multiworld seed to fill subtest (#2346)
This commit is contained in:
		
							parent
							
								
									9f126ad0d0
								
							
						
					
					
						commit
						6e6fa13e44
					
				| 
						 | 
				
			
			@ -278,7 +278,6 @@ class WorldTestBase(unittest.TestCase):
 | 
			
		|||
 | 
			
		||||
    def testFill(self):
 | 
			
		||||
        """Generates a multiworld and validates placements with the defined options"""
 | 
			
		||||
        # don't run this test if accessibility is set manually
 | 
			
		||||
        if not (self.run_default_tests and self.constructed):
 | 
			
		||||
            return
 | 
			
		||||
        from Fill import distribute_items_restrictive
 | 
			
		||||
| 
						 | 
				
			
			@ -302,7 +301,7 @@ class WorldTestBase(unittest.TestCase):
 | 
			
		|||
                
 | 
			
		||||
            return self.multiworld.has_beaten_game(state, 1)
 | 
			
		||||
 | 
			
		||||
        with self.subTest("Game", game=self.game):
 | 
			
		||||
        with self.subTest("Game", game=self.game, seed=self.multiworld.seed):
 | 
			
		||||
            distribute_items_restrictive(self.multiworld)
 | 
			
		||||
            call_all(self.multiworld, "post_fill")
 | 
			
		||||
            self.assertTrue(fulfills_accessibility(), "Collected all locations, but can't beat the game.")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue