示例#1
0
def test_rate_profile_0_stars():
    profile = User().quickmatch()
    profile.rate(0)
    assert User().get_profile(profile.username).rating == profile.rating
    assert profile.rating == 0
示例#2
0
def test_rate_profile():
    profile = User().quickmatch()
    profile.rate(5)
    profile.refresh()
    assert profile.rating == 5
示例#3
0
def test_rate_profile_0_stars():
    profile = User().quickmatch()
    profile.rate(0)
    assert User().get_profile(profile.username).rating == profile.rating
    assert profile.rating == 0
示例#4
0
def test_rate_profile_1_stars():
    profile = User().quickmatch()
    profile.rate(1)
    assert profile.rating == 1
示例#5
0
def test_rate_profile():
    profile = User().quickmatch()
    profile.rate(5)
    profile.refresh()
    assert profile.rating == 5