de56c5532ec33ad249d3befbe000a2f0b2e47e85,ratings/tests.py,RatingsTestCase,test_rating_change,#RatingsTestCase#,70
Before Change
def test_rating_change(self):
Change your existing rating.
loggedin = self.client.login(username="testuser1", password="testpass")
self.assertTrue(loggedin)
r = ratings.models.SoundRating.objects.create(sound_id=self.sound.id, user_id=self.user1.id, rating=4)
After Change
def test_rating_change(self):
Change your existing rating.
self.client.force_login(self.user1)
r = ratings.models.SoundRating.objects.create(sound_id=self.sound.id, user_id=self.user1.id, rating=4)
resp = self.client.get("/people/Anton/sounds/%s/rate/%s/" % (self.sound.id, 5))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: MTG/freesound
Commit Name: de56c5532ec33ad249d3befbe000a2f0b2e47e85
Time: 2017-11-20
Author: alastair.porter@upf.edu
File Name: ratings/tests.py
Class Name: RatingsTestCase
Method Name: test_rating_change
Project Name: MTG/freesound
Commit Name: de56c5532ec33ad249d3befbe000a2f0b2e47e85
Time: 2017-11-20
Author: alastair.porter@upf.edu
File Name: ratings/tests.py
Class Name: RatingsTestCase
Method Name: test_rating_out_of_range
Project Name: MTG/freesound
Commit Name: de56c5532ec33ad249d3befbe000a2f0b2e47e85
Time: 2017-11-20
Author: alastair.porter@upf.edu
File Name: ratings/tests.py
Class Name: RatingsTestCase
Method Name: test_rating_normal