aa-structures 2.11.0__py3-none-any.whl → 2.13.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {aa_structures-2.11.0.dist-info → aa_structures-2.13.0.dist-info}/METADATA +1 -1
- {aa_structures-2.11.0.dist-info → aa_structures-2.13.0.dist-info}/RECORD +22 -19
- structures/__init__.py +1 -1
- structures/core/notification_embeds/main.py +76 -31
- structures/core/notification_embeds/orbital_embeds.py +1 -1
- structures/core/notification_embeds/skyhook_embeds.py +89 -0
- structures/core/notification_embeds/structures_embeds.py +23 -12
- structures/core/notification_embeds/tower_embeds.py +1 -1
- structures/core/notification_types.py +57 -36
- structures/managers.py +9 -6
- structures/migrations/0007_add_notificationtypes_skyhook_metenox.py +149 -0
- structures/migrations/0008_add_notificationtypes_skyhook_metenox.py +149 -0
- structures/models/notifications.py +5 -1
- structures/tests/core/notification_embeds/test_main.py +20 -0
- structures/tests/core/test_notification_types.py +16 -0
- structures/tests/models/test_notifications_discord.py +21 -0
- structures/tests/testdata/create_eveuniverse.py +6 -1
- structures/tests/testdata/entities.json +71 -1
- structures/tests/testdata/eveuniverse.json +6306 -5145
- structures/tests/testdata/generate_notifications.py +142 -157
- {aa_structures-2.11.0.dist-info → aa_structures-2.13.0.dist-info}/LICENSE +0 -0
- {aa_structures-2.11.0.dist-info → aa_structures-2.13.0.dist-info}/WHEEL +0 -0
@@ -16,6 +16,11 @@ class CreateEveUniverseTestData(TestCase):
|
|
16
16
|
include_children=True,
|
17
17
|
enabled_sections=[EveType.Section.DOGMAS],
|
18
18
|
),
|
19
|
+
ModelSpec(
|
20
|
+
"EveCategory",
|
21
|
+
ids=[EveCategoryId.ORBITAL],
|
22
|
+
include_children=True,
|
23
|
+
),
|
19
24
|
ModelSpec(
|
20
25
|
"EveGroup",
|
21
26
|
ids=[EveGroupId.CONTROL_TOWER],
|
@@ -24,7 +29,7 @@ class CreateEveUniverseTestData(TestCase):
|
|
24
29
|
),
|
25
30
|
ModelSpec(
|
26
31
|
"EveType",
|
27
|
-
ids=[EveTypeId.TCU, EveTypeId.IHUB
|
32
|
+
ids=[EveTypeId.TCU, EveTypeId.IHUB],
|
28
33
|
include_children=True,
|
29
34
|
enabled_sections=[EveType.Section.DOGMAS],
|
30
35
|
),
|
@@ -251,7 +251,7 @@
|
|
251
251
|
"notification_id": 1000000511,
|
252
252
|
"type": "StructureWentLowPower",
|
253
253
|
"sender_id": 2901,
|
254
|
-
"sender_type": "
|
254
|
+
"sender_type": "corporation",
|
255
255
|
"timestamp": "2019-11-20 22:02:00",
|
256
256
|
"text": "solarsystemID: 30002537\nstructureID: &id001 1000000000001\nstructureShowInfoData:\n- showinfo\n- 35832\n- *id001\nstructureTypeID: 35832\n",
|
257
257
|
"is_read": false
|
@@ -736,6 +736,76 @@
|
|
736
736
|
"is_read": false,
|
737
737
|
"is_sent": false
|
738
738
|
},
|
739
|
+
{
|
740
|
+
"notification_id": 1000001201,
|
741
|
+
"type": "SkyhookUnderAttack",
|
742
|
+
"sender_id": 2901,
|
743
|
+
"sender_type": "corporation",
|
744
|
+
"timestamp": "2019-11-18 20:00:00",
|
745
|
+
"text": "allianceID: 3011\nallianceLinkData:\n- showinfo\n- 16159\n- 3011\nallianceName: Big Bad Alliance\narmorPercentage: 99.97623738812345\ncharID: 1011\ncorpLinkData:\n- showinfo\n- 2\n- 2011\ncorpName: Bad Company\nhullPercentage: 100.0\nisActive: true\nitemID: &id001 1000000010001\nplanetID: 40161469\nplanetShowInfoData:\n- showinfo\n- 2016\n- 40161469\nshieldPercentage: 1.6855855838775617e-09\nskyhookShowInfoData:\n- showinfo\n- 81080\n- *id001\nsolarsystemID: 30002537\ntypeID: 81080",
|
746
|
+
"is_read": false,
|
747
|
+
"is_sent": false
|
748
|
+
},
|
749
|
+
{
|
750
|
+
"notification_id": 1000001202,
|
751
|
+
"type": "SkyhookLostShields",
|
752
|
+
"sender_id": 2901,
|
753
|
+
"sender_type": "corporation",
|
754
|
+
"timestamp": "2019-11-18 20:00:00",
|
755
|
+
"text": "itemID: &id001 1000000010001\nplanetID: 40161469\nplanetShowInfoData:\n- showinfo\n- 2016\n- 40161469\nskyhookShowInfoData:\n- showinfo\n- 81080\n- *id001\nsolarsystemID: 30002537\ntimeLeft: 1378460630068\ntimestamp: 133661870440000000\ntypeID: 81080\nvulnerableTime: 9000000000",
|
756
|
+
"is_read": false,
|
757
|
+
"is_sent": false
|
758
|
+
},
|
759
|
+
{
|
760
|
+
"notification_id": 1000001203,
|
761
|
+
"type": "SkyhookDestroyed",
|
762
|
+
"sender_id": 2901,
|
763
|
+
"sender_type": "corporation",
|
764
|
+
"timestamp": "2019-11-18 20:00:00",
|
765
|
+
"text": "itemID: &id001 1000000010001\nplanetID: 40161469\nplanetShowInfoData:\n- showinfo\n- 2016\n- 40161469\nskyhookShowInfoData:\n- showinfo\n- 81080\n- *id001\nsolarsystemID: 30002537\ntypeID: 81080",
|
766
|
+
"is_read": false,
|
767
|
+
"is_sent": false
|
768
|
+
},
|
769
|
+
{
|
770
|
+
"notification_id": 1000001204,
|
771
|
+
"type": "SkyhookDeployed",
|
772
|
+
"sender_id": 2901,
|
773
|
+
"sender_type": "corporation",
|
774
|
+
"timestamp": "2019-11-18 20:00:00",
|
775
|
+
"text": "itemID: &id002 1000000010001\nownerCorpLinkData:\n- showinfo\n- 2\n- 2001\nownerCorpName: Good Company\nplanetID: &id001 40161469\nplanetShowInfoData:\n- showinfo\n- 2016\n- *id001\nskyhookShowInfoData:\n- showinfo\n- 81080\n- *id002\nsolarsystemID: 30002537\ntimeLeft: 18000000000\ntypeID: 81080",
|
776
|
+
"is_read": false,
|
777
|
+
"is_sent": false
|
778
|
+
},
|
779
|
+
{
|
780
|
+
"notification_id": 1000001205,
|
781
|
+
"type": "SkyhookOnline",
|
782
|
+
"sender_id": 2901,
|
783
|
+
"sender_type": "corporation",
|
784
|
+
"timestamp": "2019-11-18 20:00:00",
|
785
|
+
"text": "itemID: &id002 1000000010001\nplanetID: &id001 40161469\nplanetShowInfoData:\n- showinfo\n- 2016\n- *id001\nskyhookShowInfoData:\n- showinfo\n- 81080\n- *id002\nsolarsystemID: 30002537\ntypeID: 81080",
|
786
|
+
"is_read": false,
|
787
|
+
"is_sent": false
|
788
|
+
},
|
789
|
+
{
|
790
|
+
"notification_id": 1000001301,
|
791
|
+
"type": "StructureLowReagentsAlert",
|
792
|
+
"sender_id": 2901,
|
793
|
+
"sender_type": "corporation",
|
794
|
+
"timestamp": "2019-11-18 20:00:00",
|
795
|
+
"text": "solarsystemID: 30002537\nstructureID: &id001 1000000000001\nstructureShowInfoData:\n- showinfo\n- 81826\n- *id001\nstructureTypeID: 81826",
|
796
|
+
"is_read": false,
|
797
|
+
"is_sent": false
|
798
|
+
},
|
799
|
+
{
|
800
|
+
"notification_id": 1000001302,
|
801
|
+
"type": "StructureNoReagentsAlert",
|
802
|
+
"sender_id": 2901,
|
803
|
+
"sender_type": "corporation",
|
804
|
+
"timestamp": "2019-11-18 20:00:00",
|
805
|
+
"text": "solarsystemID: 30002537\nstructureID: &id001 1000000000001\nstructureShowInfoData:\n- showinfo\n- 81826\n- *id001\nstructureTypeID: 81826",
|
806
|
+
"is_read": false,
|
807
|
+
"is_sent": false
|
808
|
+
},
|
739
809
|
{
|
740
810
|
"notification_id": 1999999999,
|
741
811
|
"type": "UnknownNotificationType",
|