b29f5be9ac366a6a7fbe68a33abb50087cf6303d,accounts/tests/test_profile.py,ProfilePostInForumTest,test_can_post_in_forum_admin,#ProfilePostInForumTest#,417

Before Change


    def test_can_post_in_forum_admin(self):
        If you"re a forum admin, you can post even if you have no sounds, you"re within
        5 minutes of the last one, and you"ve gone over the limit of posts for the day
        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()
        perm = Permission.objects.get_by_natural_key("can_moderate_forum", "forum", "post")
        self.user.user_permissions.add(perm)

After Change


    def test_can_post_in_forum_admin(self):
        If you"re a forum admin, you can post even if you have no sounds, you"re within
        5 minutes of the last one, and you"ve gone over the limit of posts for the day
        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()
        perm = Permission.objects.get_by_natural_key("can_moderate_forum", "forum", "post")
        self.user.user_permissions.add(perm)
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_admin


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