8e88a6ee6b1d8e471baf8eb9da84143fc641a012,tests/test_activitylogs/test_views.py,TestActivityLogsListViewV1,setUp,#TestActivityLogsListViewV1#,45

Before Change


        self.set_objects()
        self.set_url()

        self.objects = self.model_class.objects.all()
        self.queryset = self.model_class.objects.all()
        self.queryset = self.queryset.order_by("-created_at")

    def test_get(self):

After Change



        self.queryset = self.model_class.objects.all()
        self.queryset = self.queryset.order_by("-created_at")
        self.filtered_queryset = self.queryset.filter(
            event_type__in=activitylogs.default_manager.user_write_events()
        )

    def test_get(self):
        resp = self.auth_client.get(self.url)
        assert resp.status_code == status.HTTP_200_OK
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: polyaxon/polyaxon
Commit Name: 8e88a6ee6b1d8e471baf8eb9da84143fc641a012
Time: 2018-07-21
Author: mouradmourafiq@gmail.com
File Name: tests/test_activitylogs/test_views.py
Class Name: TestActivityLogsListViewV1
Method Name: setUp


Project Name: MTG/freesound
Commit Name: f3dbb6069630079f5f82d3325f8129b1ee2ecaec
Time: 2018-05-24
Author: frederic.font@upf.edu
File Name: general/management/commands/report_count_statuses.py
Class Name: Command
Method Name: handle


Project Name: AlexsLemonade/refinebio
Commit Name: d03c17c40a2f3874c6b901d75763dcfc1492955c
Time: 2018-03-16
Author: rich@anomos.info
File Name: workers/data_refinery_workers/processors/utils.py
Class Name:
Method Name: start_job