コード例 #1
0
ファイル: server_test.py プロジェクト: kimdwkimdw/geofront
def test_get_team__invalid_type():
    app.config['TEAM'] = 'invalid type'
    with raises(RuntimeError):
        with app.app_context():
            get_team()
コード例 #2
0
ファイル: server_test.py プロジェクト: kimdwkimdw/geofront
def test_get_team(fx_team):
    app.config['TEAM'] = fx_team
    with app.app_context():
        assert get_team() is fx_team
コード例 #3
0
ファイル: server_test.py プロジェクト: kimdwkimdw/geofront
def test_get_team__no_config():
    with raises(RuntimeError):
        with app.app_context():
            get_team()
コード例 #4
0
ファイル: server_test.py プロジェクト: gitter-badger/geofront
def test_get_team__invalid_type():
    app.config["TEAM"] = "invalid type"
    with raises(RuntimeError):
        with app.app_context():
            get_team()
コード例 #5
0
def test_get_team(fx_team):
    app.config['TEAM'] = fx_team
    with app.app_context():
        assert get_team() is fx_team
コード例 #6
0
def test_get_team__invalid_type():
    app.config['TEAM'] = 'invalid type'
    with raises(RuntimeError):
        with app.app_context():
            get_team()
コード例 #7
0
def test_get_team__no_config():
    with raises(RuntimeError):
        with app.app_context():
            get_team()