b29f5be9ac366a6a7fbe68a33abb50087cf6303d,accounts/tests/test_profile.py,ProfilePostInForumTest,test_can_post_in_forum_time,#ProfilePostInForumTest#,366

Before Change



    def test_can_post_in_forum_time(self):
        If you have no sounds, you can"t post within 5 minutes of the last one
        created = datetime.datetime(2019, 2, 3, 10, 50, 00)
        post = Post.objects.create(thread=self.thread, body="", author=self.user, moderation_state="OK")
        post.created = created
        post.save()
        with freezegun.freeze_time("2019-02-03 10:52:30"):
            can_post, reason = self.user.profile.can_post_in_forum()

After Change



    def test_can_post_in_forum_time(self):
        If you have no sounds, you can"t post within 5 minutes of the last one
        created = parse_date("2019-02-03 10:50:00")
        post = Post.objects.create(thread=self.thread, body="", author=self.user, moderation_state="OK")
        post.created = created
        post.save()
        with freezegun.freeze_time("2019-02-03 10:52:30"):
            can_post, reason = self.user.profile.can_post_in_forum()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: MTG/freesound
Commit Name: b29f5be9ac366a6a7fbe68a33abb50087cf6303d
Time: 2019-05-16
Author: alastair.porter@upf.edu
File Name: accounts/tests/test_profile.py
Class Name: ProfilePostInForumTest
Method Name: test_can_post_in_forum_time


Project Name: MTG/freesound
Commit Name: b29f5be9ac366a6a7fbe68a33abb50087cf6303d
Time: 2019-05-16
Author: alastair.porter@upf.edu
File Name: accounts/tests/test_profile.py
Class Name: ProfilePostInForumTest
Method Name: test_can_post_in_forum_has_sounds


Project Name: MTG/freesound
Commit Name: b29f5be9ac366a6a7fbe68a33abb50087cf6303d
Time: 2019-05-16
Author: alastair.porter@upf.edu
File Name: accounts/tests/test_profile.py
Class Name: ProfilePostInForumTest
Method Name: test_can_post_in_forum_admin