Exemple #1
0
 def test_search(self):
     project = test_data.create_dummy_project()
     test_data.create_dummy_issue(project, title='One')
     test_data.create_dummy_issue(project, title='Two')
     test_data.create_dummy_issue(project, title='Three')
     test_data.create_dummy_issue(project, title='Four')
     response = self.client.get('/search/')
     self.assertEqual(response.status_code, 200)
     self.assertEqual(4, len(response.context['issues']))
 def test_project_edit_form(self):
     project = test_data.create_dummy_project()
     self.assert_permanent_redirect(_reverse('edit_form', project_id=project.id),
         '/core/project/%s/edit' % project.id)
 def setUp(self):
     self.project = test_data.create_dummy_project()
     self.client = Client()
 def test_project_view(self):
     project = test_data.create_dummy_project()
     self.assert_permanent_redirect(_reverse('view', project_id=project.id),
         '/core/project/%s/' % project.id)
Exemple #5
0
 def test_project_edit_form(self):
     project = test_data.create_dummy_project()
     self.assert_permanent_redirect(_reverse('edit_form', project_id=project.id),
         '/core/project/%s/edit' % project.id)
Exemple #6
0
 def test_project_view(self):
     project = test_data.create_dummy_project()
     self.assert_permanent_redirect(_reverse('view', project_id=project.id),
         '/core/project/%s/' % project.id)
Exemple #7
0
 def setUp(self):
     self.project = test_data.create_dummy_project()
     self.client = Client()
 def setUp(self):
     self.project = test_data.create_dummy_project()
     self.issue = test_data.create_dummy_issue(project=self.project)
     self.offer = test_data.create_dummy_offer_usd(issue=self.issue)
     self.issue.update_redundant_fields()
     self.client = Client()
Exemple #9
0
 def setUp(self):
     self.project = test_data.create_dummy_project()
     self.issue = test_data.create_dummy_issue(project=self.project)
     self.offer = test_data.create_dummy_offer_usd(issue=self.issue)
     self.issue.update_redundant_fields()
     self.client = Client()