forked from GamesDoneQuick/donation-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove old Donation/Bid processing pages and related files
[#182383857]
- Loading branch information
1 parent
844192b
commit c9d25b8
Showing
21 changed files
with
6 additions
and
27,778 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,58 +32,6 @@ def test_get_loads(self): | |
self.assertContains(response, 'Select which donor to use as the template') | ||
|
||
|
||
class ProcessDonationsTest(TestCase): | ||
def setUp(self): | ||
self.rand = random.Random(None) | ||
self.superuser = User.objects.create_superuser( | ||
'superuser', '[email protected]', 'password', | ||
) | ||
self.processor = User.objects.create(username='processor', is_staff=True) | ||
self.processor.user_permissions.add( | ||
Permission.objects.get(name='Can change donor'), | ||
Permission.objects.get(name='Can change donation'), | ||
) | ||
self.head_processor = User.objects.create( | ||
username='head_processor', is_staff=True | ||
) | ||
self.head_processor.user_permissions.add( | ||
Permission.objects.get(name='Can change donor'), | ||
Permission.objects.get(name='Can change donation'), | ||
Permission.objects.get(name='Can send donations to the reader'), | ||
) | ||
self.event = randgen.build_random_event(self.rand) | ||
self.session = self.client.session | ||
self.session.save() | ||
|
||
def test_one_step_screening(self): | ||
self.client.force_login(self.processor) | ||
response = self.client.get( | ||
reverse('admin:process_donations', args=(self.event.short,)) | ||
) | ||
self.assertEqual(response.context['user_can_approve'], True) | ||
self.assertEqual(response.status_code, 200) | ||
|
||
def test_two_step_screening_non_head(self): | ||
self.event.use_one_step_screening = False | ||
self.event.save() | ||
self.client.force_login(self.processor) | ||
response = self.client.get( | ||
reverse('admin:process_donations', args=(self.event.short,)) | ||
) | ||
self.assertEqual(response.context['user_can_approve'], False) | ||
self.assertEqual(response.status_code, 200) | ||
|
||
def test_two_step_screening_with_head(self): | ||
self.event.use_one_step_screening = False | ||
self.event.save() | ||
self.client.force_login(self.head_processor) | ||
response = self.client.get( | ||
reverse('admin:process_donations', args=(self.event.short,)) | ||
) | ||
self.assertEqual(response.context['user_can_approve'], True) | ||
self.assertEqual(response.status_code, 200) | ||
|
||
|
||
class ProcessDonationsBrowserTest(TrackerSeleniumTestCase): | ||
def setUp(self): | ||
self.rand = random.Random(None) | ||
|
@@ -179,26 +127,6 @@ def setUp(self): | |
self.session = self.client.session | ||
self.session.save() | ||
|
||
def test_read_donations(self): | ||
self.client.force_login(self.superuser) | ||
response = self.client.get(reverse('admin:read_donations')) | ||
self.assertEqual(response.status_code, 200) | ||
|
||
response = self.client.get( | ||
reverse('admin:read_donations', args=(self.event.short,)) | ||
) | ||
self.assertEqual(response.status_code, 200) | ||
|
||
def test_process_donations(self): | ||
self.client.force_login(self.superuser) | ||
response = self.client.get(reverse('admin:process_donations')) | ||
self.assertEqual(response.status_code, 200) | ||
|
||
response = self.client.get( | ||
reverse('admin:process_donations', args=(self.event.short,)) | ||
) | ||
self.assertEqual(response.status_code, 200) | ||
|
||
def test_merge_bids(self): | ||
self.client.force_login(self.superuser) | ||
randgen.generate_runs(self.rand, self.event, 5) | ||
|
@@ -210,16 +138,6 @@ def test_merge_bids(self): | |
self.assertEqual(response.status_code, 200) | ||
self.assertContains(response, 'Select which bid to use as the template') | ||
|
||
def test_process_pending_bids(self): | ||
self.client.force_login(self.superuser) | ||
response = self.client.get(reverse('admin:process_pending_bids')) | ||
self.assertEqual(response.status_code, 200) | ||
|
||
response = self.client.get( | ||
reverse('admin:process_pending_bids', args=(self.event.short,)) | ||
) | ||
self.assertEqual(response.status_code, 200) | ||
|
||
def test_automail_prize_contributors(self): | ||
self.client.force_login(self.superuser) | ||
response = self.client.get(reverse('admin:automail_prize_contributors')) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.