def test_new_from_enum(): """Ensure basic functionality.""" class A(enum.Enum): Thing = "Stuff" Other = "Thing" B = enums.new_from_enum( "B", A, remove=["Other"], add={"Thing": "Changed", "foo": "bar"}, ) with pytest.raises(AttributeError): B.Other assert B.Thing.value == "Changed" assert B.foo.value == "bar"
project_discovery_reward = 125 project_discovery_tax = 126 reprocessing_tax = 127 jump_clone_activation_fee = 128 operation_bonus = 129 resource_wars_reward = 131 duel_wager_escrow = 132 duel_wager_payment = 133 duel_wager_refund = 134 reaction = 135 JournalRefTypeEnumV3 = new_from_enum( # pylint: disable=invalid-name "JournalRefTypeEnumV3", JournalRefTypeEnumV2, add={ "structure_gate_jump": 140 } ) JournalRefTypeEnumV4 = new_from_enum( # pylint: disable=invalid-name "JournalRefTypeEnumV4", JournalRefTypeEnumV3, add={ "external_trade_freeze": 136, "external_trade_thaw": 137, "external_trade_delivery": 138, "season_challenge_reward": 139, "skill_purchase": 141, "item_trader_payment": 142, "flux_ticket_sale": 143, # hypernet ref group
FighterTube1 = 160 FighterTube2 = 161 FighterTube3 = 162 FighterTube4 = 163 ServiceSlot0 = 164 ServiceSlot1 = 165 ServiceSlot2 = 166 ServiceSlot3 = 167 ServiceSlot4 = 168 ServiceSlot5 = 169 ServiceSlot6 = 170 ServiceSlot7 = 171 StructureFuel = 172 Deliveries = 173 CrateLoot = 174 CorpseBay = 174 BoosterBay = 176 SubsystemBay = 177 HangarAll = 1000 CorporationLocationFlagEnumV2 = new_from_enum( # pylint: disable=invalid-name "CorporationLocationFlagEnumV2", CorporationLocationFlagEnumV1, remove=["HiddenModifers", "SubsystemBay"], add={ "HiddenModifiers": 156, "SubSystemBay": 177 } )
FighterTube2 = 161 FighterTube3 = 162 FighterTube4 = 163 Deliveries = 173 CorpseBay = 174 BoosterBay = 176 SubSystemBay = 177 FrigateEscapeBay = 179 HangarAll = 1000 PersonalLocationFlagEnumV3 = new_from_enum( # pylint: disable=invalid-name "PersonalLocationFlagEnumV3", PersonalLocationFlagEnumV2, add={ "FrigateEscapeBay": 179, "StructureDeedBay": 180, "SpecializedIceHold": 181, "SpecializedAsteroidHold": 182, } ) class CorporationLocationFlagEnumV1(enum.Enum): """From inventorycommon/const.py:75.""" AutoFit = 0 Wallet = 1 OfficeFolder = 2 Wardrobe = 3 Hangar = 4 Cargo = 5
"""Helpers for player owned customs offices (poco).""" import enum from eve_glue.enums import new_from_enum class StructureStateEnumV1(enum.Enum): """Enum for poco states.""" unknown = 0 unanchored = 1 anchoring = 2 online_deprecated = 100 # This only applies to legacy POCOs fitting_invulnerable = 101 # This only applies to legacy POCOs onlining_vulnerable = 102 shield_vulnerable = 110 armor_reinforce = 111 armor_vulnerable = 112 hull_reinforce = 113 hull_vulnerable = 114 anchor_vulnerable = 115 StructureStateEnumV2 = new_from_enum( # pylint: disable=invalid-name "StructureStateEnumV2", StructureStateEnumV1, add={"deploy_vulnerable": 116})
NPCStandingsLost = 3001 NPCStandingsGained = 3002 MoonminingExtractionStarted = 202 MoonminingExtractionCancelled = 203 MoonminingExtractionFinished = 204 MoonminingLaserFired = 205 MoonminingAutomaticFracture = 206 StructureWentLowPower = 207 StructureWentHighPower = 208 StructuresReinforcementChanged = 209 NotificationTypeEnumV3 = new_from_enum( # pylint: disable=invalid-name "NotificationTypeEnumV3", NotificationTypeEnumV2, add={ "StructuresJobsPaused": 210, "StructuresJobsCancelled": 211, }) NotificationTypeEnumV4 = new_from_enum( # pylint: disable=invalid-name "NotificationTypeEnumV4", NotificationTypeEnumV3, add={ "CombatOperationFinished": 1013, "IndustryOperationFinished": 1014, "ESSMainBankLink": 1015, }) NotificationTypeEnumV5 = new_from_enum( # pylint: disable=invalid-name "NotificationTypeEnumV5",
StructureDestroyed = 188 StructureServicesOffline = 198 StructureItemsDelivered = 199 SeasonalChallengeCompleted = 200 StructureCourierContractChanged = 201 OperationFinished = 1012 GiftReceived = 1022 GameTimeReceived = 1030 GameTimeSent = 1031 GameTimeAdded = 1032 NPCStandingsLost = 3001 NPCStandingsGained = 3002 notificationTypeMoonminingExtractionStarted = 202 # noqa pylint: disable=invalid-name MoonminingExtractionCancelled = 203 MoonminingExtractionFinished = 204 MoonminingLaserFired = 205 MoonminingAutomaticFracture = 206 NotificationTypeEnumV2 = new_from_enum( # pylint: disable=invalid-name "NotificationTypeEnumV2", NotificationTypeEnum, remove=["notificationTypeMoonminingExtractionStarted"], add={ "MoonminingExtractionStarted": 202, "StructureWentLowPower": 207, "StructureWentHighPower": 208, "StructuresReinforcementChanged": 209 } )