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
def test_rate_profile(): profile = User().quickmatch() profile.rate(5) profile.refresh() assert profile.rating == 5
def test_rate_profile_1_stars(): profile = User().quickmatch() profile.rate(1) assert profile.rating == 1