Exemple #1
0
 def feed_s12_reading(self):
     return [Feed({
         "id": "758c38cf-753d-49a2-97d8-ef633d93917e",
         "playerTags": [
           "09f2787a-3352-41a6-8810-d80e97b253b5",
           "316abea7-9890-4fb8-aaea-86b35e24d9be"
         ],
         "teamTags": [
           "7966eb04-efcc-499b-8f03-d13916330531",
           "ca3f1c8c-c025-4d8e-8eef-5be6accbeb16"
         ],
         "gameTags": [],
         "metadata": {
           "count": "20",
           "spread": [
             0,
             11,
             13
           ],
           "tarotId": "over_under"
         },
         "created": "2021-03-02T18:32:50.777Z",
         "season": 11,
         "tournament": -1,
         "type": 81,
         "day": 27,
         "phase": 3,
         "category": 1,
         "description": "OVER UNDER\nUNDER OVER"
       })]
Exemple #2
0
 def test_load_by_team(self):
     feed = Feed.load_by_team(team_id="a37f9158-7f82-46bc-908c-c9e2dda7c33b", count=2, category=0)
     assert isinstance(feed, list)
     assert len(feed) == 2
     for item in feed:
         assert isinstance(item, Feed)
         assert item.category == 0
Exemple #3
0
 def test_load_by_player(self):
     feed = Feed.load_by_player(player_id="1f159bab-923a-4811-b6fa-02bfde50925a", count=2, category=0)
     assert isinstance(feed, list)
     assert len(feed) == 2
     for item in feed:
         assert isinstance(item, Feed)
         assert item.category == 0
Exemple #4
0
 def test_load_by_game(self):
     feed = Feed.load_by_game(game_id="ebcf203e-6ce7-4d64-8f3e-a78b373c70ff", count=2, category=0)
     assert isinstance(feed, list)
     assert len(feed) == 2
     for item in feed:
         assert isinstance(item, Feed)
         assert item.category == 0
Exemple #5
0
 def test_load(self):
     feed = Feed.load(count=2, category=0)
     assert isinstance(feed, list)
     assert len(feed) == 2
     for item in feed:
         assert isinstance(item, Feed)
         assert item.category == 0
Exemple #6
0
 def feed_s14_consumer(self):
     return [Feed({
         "id": "9f2a583f-f3bd-4237-926b-5e80ad3d0ba5",
         "playerTags": [
           "b082ca6e-eb11-4eab-8d6a-30f8be522ec4"
         ],
         "teamTags": [
           "747b8e4a-7e50-4638-a973-ea7950a3e739"
         ],
         "gameTags": [
           "ea7e391a-8c5b-4547-b520-a7ee44a9946c"
         ],
         "metadata": {
           "play": 218,
           "type": 4,
           "after": 2.7851969158648604,
           "before": 3.311603618012235,
           "parent": "3929a748-1d0d-4e79-ac37-22749a2351d7",
           "subPlay": 0
         },
         "created": "2021-03-19T06:18:25.709Z",
         "season": 13,
         "tournament": -1,
         "type": 118,
         "day": 85,
         "phase": 6,
         "category": 1,
         "description": "CONSUMERS ATTACK\nNICHOLAS MORA"
       })]
Exemple #7
0
 def test_load_by_phase(self):
     feed = Feed.load_by_phase(season=12, phase=3)
     assert isinstance(feed, list)
     assert len(feed) > 0
     for item in feed:
         assert isinstance(item, Feed)
         assert item.season == 12
         assert item.phase == 3
Exemple #8
0
 def feed_global_current(self):
     return Feed.load(count=3)