463129c7e6cdcaf702d494718dbf550555d6ee95,app/server/tests/test_api.py,TestSearch,setUpTestData,#Any#,521
Before Change
cls.main_project = mixer.blend("server.Project", users=[project_member])
cls.search_term = "example"
mixer.blend("server.Document", text=cls.search_term, project=cls.main_project)
mixer.blend("server.Document", text="Lorem", project=cls.main_project)
sub_project = mixer.blend("server.Project", users=[non_project_member])
mixer.blend("server.Document", text=cls.search_term, project=sub_project)
cls.url = reverse(viewname="doc_list", args=[cls.main_project.id])
After Change
cls.main_project = mixer.blend("server.Project", users=[project_member])
cls.search_term = "example"
doc1 = mixer.blend("server.Document", text=cls.search_term, project=cls.main_project)
doc2 = mixer.blend("server.Document", text="Lorem", project=cls.main_project)
label1 = mixer.blend("server.Label", project=cls.main_project)
label2 = mixer.blend("server.Label", project=cls.main_project)
mixer.blend("server.SequenceAnnotation", document=doc1, user=project_member, label=label1)
mixer.blend("server.SequenceAnnotation", document=doc2, user=project_member, label=label2)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: chakki-works/doccano
Commit Name: 463129c7e6cdcaf702d494718dbf550555d6ee95
Time: 2019-02-24
Author: light.tree.1.13@gmail.com
File Name: app/server/tests/test_api.py
Class Name: TestSearch
Method Name: setUpTestData
Project Name: chakki-works/doccano
Commit Name: c632fbb634a963470e0aed57117e10b35bc82152
Time: 2018-07-06
Author: hiroki.nakayama.py@gmail.com
File Name: app/server/tests/tests.py
Class Name: TestLabel
Method Name: test_shortcut_uniqueness
Project Name: chakki-works/doccano
Commit Name: c632fbb634a963470e0aed57117e10b35bc82152
Time: 2018-07-06
Author: hiroki.nakayama.py@gmail.com
File Name: app/server/tests/tests.py
Class Name: TestLabel
Method Name: test_text_uniqueness