Ejemplo n.º 1
0
 def test_u19_match_2():
     title = "Club Brugge U19 0-1 Real Madrid U19 - Jordi 23'"
     home, away, minute = extract_names_from_title_regex(title)
     matches = find_match(home,
                          away,
                          to_date=datetime.datetime(2019, 12, 12),
                          from_date=datetime.datetime(2019, 12, 11))
     assert len(matches) > 0
     match_id = matches.first().id
     assert match_id == 8469
Ejemplo n.º 2
0
 def test_u19_match_9():
     title = "Atlético Madrid U19 1-0 Lokomotiv Moscow U19 - Quintana Nacho penalty 73'"
     home, away, minute = extract_names_from_title_regex(title)
     matches = find_match(home,
                          away,
                          to_date=datetime.datetime(2019, 12, 12),
                          from_date=datetime.datetime(2019, 12, 11))
     assert len(matches) > 0
     match_id = matches.first().id
     assert match_id == 8494
Ejemplo n.º 3
0
 def test_senior_match_12():
     title = "Bayern [1] - 0 Tottenham | Kingsley Coman 14'"
     home, away, minute = extract_names_from_title_regex(title)
     matches = find_match(home,
                          away,
                          to_date=datetime.datetime(2019, 12, 12),
                          from_date=datetime.datetime(2019, 12, 11))
     assert len(matches) > 0
     match_id = matches.first().id
     assert match_id == 8527
Ejemplo n.º 4
0
 def test_u19_match_4():
     title = "Club Brugge U19 1-[2] Real Madrid U19 - Pablo Rodriguez Delgado 77'"
     home, away, minute = extract_names_from_title_regex(title)
     matches = find_match(home,
                          away,
                          to_date=datetime.datetime(2019, 12, 12),
                          from_date=datetime.datetime(2019, 12, 11))
     assert len(matches) > 0
     match_id = matches.first().id
     assert match_id == 8469
Ejemplo n.º 5
0
 def test_u19_match_6():
     title = "Bayern U19 1-0 Tottenham U19 - Flavius Daniliuc 20'"
     home, away, minute = extract_names_from_title_regex(title)
     matches = find_match(home,
                          away,
                          to_date=datetime.datetime(2019, 12, 12),
                          from_date=datetime.datetime(2019, 12, 11))
     assert len(matches) > 0
     match_id = matches.first().id
     assert match_id == 8492
Ejemplo n.º 6
0
 def test_senior_match_19():
     title = "Ajax 1-0 Utrecht - Bruno Varela 49'"
     home, away, minute = extract_names_from_title_regex(title)
     matches = find_match(home,
                          away,
                          to_date=datetime.datetime(2019, 12, 12),
                          from_date=datetime.datetime(2019, 12, 11))
     assert len(matches) > 0
     match_id = matches.first().id
     assert match_id == 8602
Ejemplo n.º 7
0
 def test_senior_match_30():
     title = "Atlético Madrid 1-0 Cadiz - Joao Felix 8'"
     home, away, minute = extract_names_from_title_regex(title)
     matches = find_match(home,
                          away,
                          to_date=datetime.datetime(2019, 12, 12),
                          from_date=datetime.datetime(2019, 12, 11))
     assert len(matches) > 0
     match_id = matches.first().id
     assert match_id == 8604
Ejemplo n.º 8
0
 def test_u19_match_1():
     title = "Dinamo Zagreb U19 1-0 Manchester City U19 - Antonio Marin (free-kick) 20'"
     home, away, minute = extract_names_from_title_regex(title)
     matches = find_match(home,
                          away,
                          to_date=datetime.datetime(2019, 12, 12),
                          from_date=datetime.datetime(2019, 12, 11))
     assert len(matches) > 0
     match_id = matches.first().id
     assert match_id == 8464
Ejemplo n.º 9
0
 def test_senior_match_4():
     title = "Shakhtar 0-3 Atalanta - Robin Gosens 90'+4'"
     home, away, minute = extract_names_from_title_regex(title)
     matches = find_match(home,
                          away,
                          to_date=datetime.datetime(2019, 12, 12),
                          from_date=datetime.datetime(2019, 12, 11))
     assert len(matches) > 0
     match_id = matches.first().id
     assert match_id == 8510
Ejemplo n.º 10
0
 def test_senior_match_2():
     title = "Dinamo Zagreb 1-4 Manchester City: Gabriel Jesus hat-trick inspires win in Zagreb"
     home, away, minute = extract_names_from_title_regex(title)
     matches = find_match(home,
                          away,
                          to_date=datetime.datetime(2019, 12, 12),
                          from_date=datetime.datetime(2019, 12, 11))
     assert len(matches) > 0
     match_id = matches.first().id
     assert match_id == 8511
Ejemplo n.º 11
0
 def test_senior_match_3():
     title = "Shakhtar 0-1 Atalanta - Timothy Castagne 66'"
     home, away, minute = extract_names_from_title_regex(title)
     matches = find_match(home,
                          away,
                          to_date=datetime.datetime(2019, 12, 12),
                          from_date=datetime.datetime(2019, 12, 11))
     assert len(matches) > 0
     match_id = matches.first().id
     assert match_id == 8510
Ejemplo n.º 12
0
 def test_senior_match_1():
     title = "Dinamo Zagreb [1]-0 Manchester City - Dani Olmo 10'"
     home, away, minute = extract_names_from_title_regex(title)
     matches = find_match(home,
                          away,
                          to_date=datetime.datetime(2019, 12, 12),
                          from_date=datetime.datetime(2019, 12, 11))
     assert len(matches) > 0
     match_id = matches.first().id
     assert match_id == 8511
Ejemplo n.º 13
0
 def test_u19_match_12():
     title = "Jong Ajax 3-0 Jong Utrecht - Liam Van Gelderen 17'"
     home, away, minute = extract_names_from_title_regex(title)
     matches = find_match(home,
                          away,
                          to_date=datetime.datetime(2019, 12, 12),
                          from_date=datetime.datetime(2019, 12, 11))
     assert len(matches) > 0
     match_id = matches.first().id
     assert match_id == 8603
Ejemplo n.º 14
0
 def test_u19_match_11():
     title = "Atlético Madrid U19 3-0 Lokomotiv Moscow U19 - Alberto Maldonado 88'"
     home, away, minute = extract_names_from_title_regex(title)
     matches = find_match(home,
                          away,
                          to_date=datetime.datetime(2019, 12, 12),
                          from_date=datetime.datetime(2019, 12, 11))
     assert len(matches) > 0
     match_id = matches.first().id
     assert match_id == 8494
Ejemplo n.º 15
0
 def test_senior_match_15():
     title = "Bayern Munich [3]-1 Tottenham - Coutinho 64'"
     home, away, minute = extract_names_from_title_regex(title)
     matches = find_match(home,
                          away,
                          to_date=datetime.datetime(2019, 12, 12),
                          from_date=datetime.datetime(2019, 12, 11))
     assert len(matches) > 0
     match_id = matches.first().id
     assert match_id == 8527
Ejemplo n.º 16
0
 def test_senior_match_6():
     title = "Bayer Leverkusen 0-2 Juventus - Higuaín 90'+2'"
     home, away, minute = extract_names_from_title_regex(title)
     matches = find_match(home,
                          away,
                          to_date=datetime.datetime(2019, 12, 12),
                          from_date=datetime.datetime(2019, 12, 11))
     assert len(matches) > 0
     match_id = matches.first().id
     assert match_id == 8530
Ejemplo n.º 17
0
 def test_senior_match_18():
     title = "Atlético Madrid 2-0 Lokomotiv Moscow - Felipe 54'"
     home, away, minute = extract_names_from_title_regex(title)
     matches = find_match(home,
                          away,
                          to_date=datetime.datetime(2019, 12, 12),
                          from_date=datetime.datetime(2019, 12, 11))
     assert len(matches) > 0
     match_id = matches.first().id
     assert match_id == 8529
Ejemplo n.º 18
0
 def test_senior_match_7():
     title = "Club Brugge [1]-1 Real Madrid - Hans Vanaken 55'"
     home, away, minute = extract_names_from_title_regex(title)
     matches = find_match(home,
                          away,
                          to_date=datetime.datetime(2019, 12, 12),
                          from_date=datetime.datetime(2019, 12, 11))
     assert len(matches) > 0
     match_id = matches.first().id
     assert match_id == 8526
Ejemplo n.º 19
0
 def test_senior_match_20():
     title = "Darmstadt 1-0 St. Pauli - Mathias Honsak 7'"
     home, away, minute = extract_names_from_title_regex(title)
     matches = find_match(home,
                          away,
                          to_date=datetime.datetime(2019, 12, 12),
                          from_date=datetime.datetime(2019, 12, 11))
     assert len(matches) > 0
     match_id = matches.first().id
     assert match_id == 8376
Ejemplo n.º 20
0
 def test_senior_match_8():
     title = "Club Brugge 1-[3] Real Madrid - Luka Modric 90'+1'"
     home, away, minute = extract_names_from_title_regex(title)
     matches = find_match(home,
                          away,
                          to_date=datetime.datetime(2019, 12, 12),
                          from_date=datetime.datetime(2019, 12, 11))
     assert len(matches) > 0
     match_id = matches.first().id
     assert match_id == 8526
Ejemplo n.º 21
0
 def test_u19_match_3():
     title = "Club Brugge U19 [1]-1 Real Madrid U19 - Mathias de Wolf penalty 27'"
     home, away, minute = extract_names_from_title_regex(title)
     matches = find_match(home,
                          away,
                          to_date=datetime.datetime(2019, 12, 12),
                          from_date=datetime.datetime(2019, 12, 11))
     assert len(matches) > 0
     match_id = matches.first().id
     assert match_id == 8469
Ejemplo n.º 22
0
 def test_senior_match_9():
     title = "PSG [1] - 0 Galatasaray | Mauro Icardi 33'"
     home, away, minute = extract_names_from_title_regex(title)
     matches = find_match(home,
                          away,
                          to_date=datetime.datetime(2019, 12, 12),
                          from_date=datetime.datetime(2019, 12, 11))
     assert len(matches) > 0
     match_id = matches.first().id
     assert match_id == 8525
Ejemplo n.º 23
0
 def test_u19_match_5():
     title = "Club Brugge U19 [2]-2 Real Madrid U19 - Senne Lammens (GK) 90'+5'"
     home, away, minute = extract_names_from_title_regex(title)
     matches = find_match(home,
                          away,
                          to_date=datetime.datetime(2019, 12, 12),
                          from_date=datetime.datetime(2019, 12, 11))
     assert len(matches) > 0
     match_id = matches.first().id
     assert match_id == 8469
Ejemplo n.º 24
0
 def test_senior_match_10():
     title = "PSG [5] - 0 Galatasaray | Cavani 84' (penalty + call)"
     home, away, minute = extract_names_from_title_regex(title)
     matches = find_match(home,
                          away,
                          to_date=datetime.datetime(2019, 12, 12),
                          from_date=datetime.datetime(2019, 12, 11))
     assert len(matches) > 0
     match_id = matches.first().id
     assert match_id == 8525
Ejemplo n.º 25
0
 def test_u19_match_7():
     title = "Bayern München U19 [2]-0 Tottenham U19 - Bright Arrey-Mbi 50'"
     home, away, minute = extract_names_from_title_regex(title)
     matches = find_match(home,
                          away,
                          to_date=datetime.datetime(2019, 12, 12),
                          from_date=datetime.datetime(2019, 12, 11))
     assert len(matches) > 0
     match_id = matches.first().id
     assert match_id == 8492
Ejemplo n.º 26
0
 def test_u19_match_8():
     title = "Bayern München U19 [3]-0 Tottenham U19 - Angelo Stiller 74'"
     home, away, minute = extract_names_from_title_regex(title)
     matches = find_match(home,
                          away,
                          to_date=datetime.datetime(2019, 12, 12),
                          from_date=datetime.datetime(2019, 12, 11))
     assert len(matches) > 0
     match_id = matches.first().id
     assert match_id == 8492