Beispiel #1
0
def test_importer_parseLineupFailsWhenShort(excel, lineup_short):
    game = 1
    team = 1
    duration = 90
    log = Log('test.log')
    importer = ImporterLineups(excel, log)
    assert importer.errored == 0
    importer.parseLineup(lineup_short, game, team, duration)
    assert importer.errored == 1
Beispiel #2
0
def test_importer_parseLineup(excel, lineup):
    game = 1
    team = 1
    duration = 90
    log = Log('test.log')
    importer = ImporterLineups(excel, log)
    assert hasattr(importer, 'starters') is False
    importer.parseLineup(lineup, game, team, duration)
    assert hasattr(importer, 'starters') is True
    assert len(importer.starters) == 11