 133167564c
			
		
	
	133167564c
	
	
	
		
			
			* Ensure that included/starter songs only include those within enabled dlcs. * Allow filtering traps by trap instead of by category. * Add in the currently available limited time dlcs to the dlc list. * Add the option group to the webhost and cleanup some errors. * Fix trap list. * Update tests. Add new ones to test correctness of new features. * Remove the old Just As Planned option * Make traps order alphabetically. Also adjust the title for traps. * Adjust new lines to better fit the website. * Style fixes. * Test adjustments and a fix due to test no longer having just as planned dlc. * Undo spacing changes as it breaks yaml generation. * Fix indenting in webhost. * Add the old options in as removed. Also clean up unused import. * Remove references to the old allow_just_as_planned_dlc_songs option in Muse Dash tests. * Add newline to end of file. --------- Co-authored-by: NewSoupVi <57900059+NewSoupVi@users.noreply.github.com>
		
			
				
	
	
		
			53 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| from . import MuseDashTestBase
 | |
| 
 | |
| 
 | |
| class TestPlandoSettings(MuseDashTestBase):
 | |
|     options = {
 | |
|         "additional_song_count": 15,
 | |
|         "dlc_packs": {"Muse Plus"},
 | |
|         "include_songs": [
 | |
|             "Lunatic",
 | |
|             "Out of Sense",
 | |
|             "Magic Knight Girl",
 | |
|         ]
 | |
|     }
 | |
| 
 | |
|     def test_included_songs_didnt_grow_item_count(self) -> None:
 | |
|         muse_dash_world = self.get_world()
 | |
|         self.assertEqual(len(muse_dash_world.included_songs), 15, "Logical songs size grew when it shouldn't.")
 | |
| 
 | |
|     def test_included_songs_plando(self) -> None:
 | |
|         muse_dash_world = self.get_world()
 | |
|         songs = muse_dash_world.included_songs.copy()
 | |
|         songs.append(muse_dash_world.victory_song_name)
 | |
| 
 | |
|         self.assertIn("Lunatic", songs, "Logical songs is missing a plando song: Lunatic")
 | |
|         self.assertIn("Out of Sense", songs, "Logical songs is missing a plando song: Out of Sense")
 | |
|         self.assertIn("Magic Knight Girl", songs, "Logical songs is missing a plando song: Magic Knight Girl")
 | |
| 
 | |
| 
 | |
| class TestFilteredPlandoSettings(MuseDashTestBase):
 | |
|     options = {
 | |
|         "additional_song_count": 15,
 | |
|         "dlc_packs": {"MSR Anthology"},
 | |
|         "include_songs": [
 | |
|             "Operation Blade",
 | |
|             "Autumn Moods",
 | |
|             "Fireflies",
 | |
|         ]
 | |
|     }
 | |
| 
 | |
|     def test_included_songs_didnt_grow_item_count(self) -> None:
 | |
|         muse_dash_world = self.get_world()
 | |
|         self.assertEqual(len(muse_dash_world.included_songs), 15, "Logical songs size grew when it shouldn't.")
 | |
| 
 | |
|     # Tests for excluding included songs when the right dlc isn't enabled
 | |
|     def test_filtered_included_songs_plando(self) -> None:
 | |
|         muse_dash_world = self.get_world()
 | |
|         songs = muse_dash_world.included_songs.copy()
 | |
|         songs.append(muse_dash_world.victory_song_name)
 | |
| 
 | |
|         self.assertIn("Operation Blade", songs, "Logical songs is missing a plando song: Operation Blade")
 | |
|         self.assertIn("Autumn Moods", songs, "Logical songs is missing a plando song: Autumn Moods")
 | |
|         self.assertNotIn("Fireflies", songs, "Logical songs has added a filtered a plando song: Fireflies")
 |