|
22 | 22 | from ietf.utils.mail import outbox |
23 | 23 |
|
24 | 24 |
|
25 | | -class ChangeStateTestCase(django.test.TestCase): |
26 | | - fixtures = ['names'] |
27 | | - |
| 25 | +class ChangeStateTests(django.test.TestCase): |
28 | 26 | def test_change_state(self): |
29 | 27 | draft = make_test_data() |
30 | 28 | draft.set_state(State.objects.get(used=True, type="draft-iesg", slug="ad-eval")) |
@@ -178,9 +176,7 @@ def test_request_last_call(self): |
178 | 176 | self.assertTrue("Last call was requested" in draft.latest_event().desc) |
179 | 177 |
|
180 | 178 |
|
181 | | -class EditInfoTestCase(django.test.TestCase): |
182 | | - fixtures = ['names'] |
183 | | - |
| 179 | +class EditInfoTests(django.test.TestCase): |
184 | 180 | def test_edit_info(self): |
185 | 181 | draft = make_test_data() |
186 | 182 | url = urlreverse('doc_edit_info', kwargs=dict(name=draft.name)) |
@@ -360,9 +356,7 @@ def test_edit_consensus(self): |
360 | 356 | self.assertEqual(draft.latest_event(ConsensusDocEvent, type="changed_consensus").consensus, True) |
361 | 357 |
|
362 | 358 |
|
363 | | -class ResurrectTestCase(django.test.TestCase): |
364 | | - fixtures = ['names'] |
365 | | - |
| 359 | +class ResurrectTests(django.test.TestCase): |
366 | 360 | def test_request_resurrect(self): |
367 | 361 | draft = make_test_data() |
368 | 362 | draft.set_state(State.objects.get(used=True, type="draft", slug="expired")) |
@@ -427,9 +421,7 @@ def test_resurrect(self): |
427 | 421 | self.assertEquals(len(outbox), mailbox_before + 1) |
428 | 422 |
|
429 | 423 |
|
430 | | -class ExpireIDsTestCase(django.test.TestCase): |
431 | | - fixtures = ['names'] |
432 | | - |
| 424 | +class ExpireIDsTests(django.test.TestCase): |
433 | 425 | def setUp(self): |
434 | 426 | self.id_dir = os.path.abspath("tmp-id-dir") |
435 | 427 | self.archive_dir = os.path.abspath("tmp-id-archive") |
@@ -609,9 +601,7 @@ def test_clean_up_draft_files(self): |
609 | 601 | self.assertTrue(not os.path.exists(os.path.join(self.id_dir, txt))) |
610 | 602 | self.assertTrue(os.path.exists(os.path.join(self.archive_dir, "deleted_tombstones", txt))) |
611 | 603 |
|
612 | | -class ExpireLastCallTestCase(django.test.TestCase): |
613 | | - fixtures = ['names'] |
614 | | - |
| 604 | +class ExpireLastCallTests(django.test.TestCase): |
615 | 605 | def test_expire_last_call(self): |
616 | 606 | from ietf.doc.lastcall import get_expired_last_calls, expire_last_call |
617 | 607 |
|
@@ -658,10 +648,7 @@ def test_expire_last_call(self): |
658 | 648 | self.assertEquals(len(outbox), mailbox_before + 1) |
659 | 649 | self.assertTrue("Last Call Expired" in outbox[-1]["Subject"]) |
660 | 650 |
|
661 | | -class IndividualInfoFormsTestCase(django.test.TestCase): |
662 | | - |
663 | | - fixtures = ['names'] |
664 | | - |
| 651 | +class IndividualInfoFormsTests(django.test.TestCase): |
665 | 652 | def test_doc_change_stream(self): |
666 | 653 | url = urlreverse('doc_change_stream', kwargs=dict(name=self.docname)) |
667 | 654 | login_testing_unauthorized(self, "secretary", url) |
@@ -886,9 +873,7 @@ def setUp(self): |
886 | 873 | self.docname='draft-ietf-mars-test' |
887 | 874 | self.doc = Document.objects.get(name=self.docname) |
888 | 875 |
|
889 | | -class SubmitToIesgTestCase(django.test.TestCase): |
890 | | - fixtures = ['names'] |
891 | | - |
| 876 | +class SubmitToIesgTests(django.test.TestCase): |
892 | 877 | def verify_permissions(self): |
893 | 878 |
|
894 | 879 | def verify_fail(remote_user): |
@@ -946,9 +931,7 @@ def setUp(self): |
946 | 931 | self.doc = Document.objects.get(name=self.docname) |
947 | 932 | self.doc.unset_state('draft-iesg') |
948 | 933 |
|
949 | | -class RequestPublicationTestCase(django.test.TestCase): |
950 | | - fixtures = ['names'] |
951 | | - |
| 934 | +class RequestPublicationTests(django.test.TestCase): |
952 | 935 | def test_request_publication(self): |
953 | 936 | draft = make_test_data() |
954 | 937 | draft.stream = StreamName.objects.get(slug="iab") |
@@ -986,8 +969,6 @@ def test_request_publication(self): |
986 | 969 | self.assertTrue(not outbox[-1]['CC']) |
987 | 970 |
|
988 | 971 | class AdoptDraftTests(django.test.TestCase): |
989 | | - fixtures = ['names'] |
990 | | - |
991 | 972 | def test_adopt_document(self): |
992 | 973 | draft = make_test_data() |
993 | 974 | draft.stream = None |
@@ -1023,8 +1004,6 @@ def test_adopt_document(self): |
1023 | 1004 | self.assertTrue("wgdelegate@ietf.org" in unicode(outbox[-1])) |
1024 | 1005 |
|
1025 | 1006 | class ChangeStreamStateTests(django.test.TestCase): |
1026 | | - fixtures = ['names'] |
1027 | | - |
1028 | 1007 | def test_set_tags(self): |
1029 | 1008 | draft = make_test_data() |
1030 | 1009 | draft.tags = DocTagName.objects.filter(slug="w-expert") |
|
0 commit comments