Sc2: [performance] change default options (#5424)
* sc2: Changing default campaign options to something more performative and desirable for new players * sc2: Fixing broken test that was missed in roundup * SC2: Update tests for new defaults * SC2: Fix incomplete test * sc2: Updating description for enabled campaigns to mention which are free to play * sc2: PR comments; Updating additional unit tests that were affected by a default change * sc2: Adding a comment to the Enabled Campaigns option to list all the valid campaign names * sc2: Adding quotes wrapping sample values in enabled_campaigns comment to aid copy-pasting --------- Co-authored-by: Salzkorn <salzkitty@gmail.com>
This commit is contained in:
@@ -8,8 +8,9 @@ from worlds import AutoWorld
|
||||
from test.general import gen_steps, call_all
|
||||
|
||||
from test.bases import WorldTestBase
|
||||
from .. import SC2World
|
||||
from .. import SC2World, SC2Campaign
|
||||
from .. import client
|
||||
from .. import options
|
||||
|
||||
class Sc2TestBase(WorldTestBase):
|
||||
game = client.SC2Context.game
|
||||
@@ -24,6 +25,18 @@ class Sc2SetupTestBase(unittest.TestCase):
|
||||
This allows potentially generating multiple worlds in one test case, useful for tracking down a rare / sporadic
|
||||
crash.
|
||||
"""
|
||||
ALL_CAMPAIGNS = {
|
||||
'enabled_campaigns': options.EnabledCampaigns.valid_keys,
|
||||
}
|
||||
TERRAN_CAMPAIGNS = {
|
||||
'enabled_campaigns': {SC2Campaign.WOL.campaign_name, SC2Campaign.NCO.campaign_name,}
|
||||
}
|
||||
ZERG_CAMPAIGNS = {
|
||||
'enabled_campaigns': {SC2Campaign.HOTS.campaign_name,}
|
||||
}
|
||||
PROTOSS_CAMPAIGNS = {
|
||||
'enabled_campaigns': {SC2Campaign.PROPHECY.campaign_name, SC2Campaign.PROLOGUE.campaign_name, SC2Campaign.LOTV.campaign_name,}
|
||||
}
|
||||
seed: Optional[int] = None
|
||||
game = SC2World.game
|
||||
player = 1
|
||||
|
||||
Reference in New Issue
Block a user