-
-
Notifications
You must be signed in to change notification settings - Fork 775
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b8fb3c9
commit 01bd3ef
Showing
8 changed files
with
35 additions
and
18 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
|
||
from django.utils import timezone | ||
|
||
from dashboard.models import Bounty, BountyFulfillment | ||
from dashboard.models import Bounty, BountyFulfillment, Profile | ||
from marketing.management.commands.sync_keywords import Command | ||
from marketing.models import Keyword | ||
from test_plus.test import TestCase | ||
|
@@ -109,14 +109,28 @@ def test_handle_complex(self): | |
} | ||
) | ||
|
||
fulfiller_profile = Profile.objects.create( | ||
data={}, | ||
handle='fred', | ||
email='[email protected]' | ||
) | ||
|
||
BountyFulfillment.objects.create( | ||
fulfiller_address='0x0000000000000000000000000000000000000000', | ||
bounty=bounty | ||
bounty=bounty, | ||
profile=fulfiller_profile | ||
) | ||
|
||
fulfiller_profile = Profile.objects.create( | ||
data={}, | ||
handle='', | ||
email='[email protected]' | ||
) | ||
|
||
BountyFulfillment.objects.create( | ||
fulfiller_address='0x0000000000000000000000000000000000000000', | ||
bounty=bounty | ||
bounty=bounty, | ||
profile=fulfiller_profile | ||
) | ||
Command().handle() | ||
|
||
|
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 |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
|
||
import marketing | ||
import marketing.management.commands.sync_pull_request_with_bounty_fulfillments | ||
from dashboard.models import Bounty, BountyFulfillment | ||
from dashboard.models import Bounty, BountyFulfillment, Profile | ||
from test_plus.test import TestCase | ||
|
||
|
||
|
@@ -63,9 +63,16 @@ def setUp(self): | |
current_bounty=True | ||
) | ||
|
||
fulfiller_profile = Profile.objects.create( | ||
data={}, | ||
handle='samplegitcoindeveloper1', | ||
email='[email protected]' | ||
) | ||
|
||
BountyFulfillment.objects.create( | ||
fulfiller_address='0x0000000000000000000000000000000000000000', | ||
accepted=False, | ||
profile=fulfiller_profile, | ||
bounty=Bounty.objects.last() | ||
) | ||
|
||
|
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