Example #1
0
def test_season_loadPlayerList():
    s = Season()
    s.connectDB()
    needle = {
        'TeamID': 1,
        'Season': 1894
    }
    s.data = s.loadPlayerList(needle)
    assert len(s.data) == 0
    needle = {
        'TeamID': 2,
        'Season': 1980
    }
    s.data = s.loadPlayerList(needle)
    assert len(s.data) == 1
Example #2
0
def test_season_loadAll():
    s = Season()
    s.connectDB()
    s.data = s.loadAll()
    assert len(s.data) == 2