diff --git a/app/dashboard/sync/helpers.py b/app/dashboard/sync/helpers.py index cf27dd53c24..8268b75d0b7 100644 --- a/app/dashboard/sync/helpers.py +++ b/app/dashboard/sync/helpers.py @@ -1,9 +1,9 @@ import logging +from decimal import Decimal from dashboard.helpers import bounty_activity_event_adapter, get_bounty_data_for_activity from dashboard.models import Activity, BountyEvent, BountyFulfillment -from decimal import Decimal logger = logging.getLogger(__name__) diff --git a/app/dashboard/tests/factories/fulfillment_factory.py b/app/dashboard/tests/factories/fulfillment_factory.py index fba77211583..699ad1d37fd 100644 --- a/app/dashboard/tests/factories/fulfillment_factory.py +++ b/app/dashboard/tests/factories/fulfillment_factory.py @@ -1,6 +1,6 @@ import factory - from dashboard.models import BountyFulfillment + from .bounty_factory import BountyFactory from .profile_factory import ProfileFactory @@ -10,4 +10,4 @@ class Meta: model = BountyFulfillment bounty = factory.SubFactory(BountyFactory) - profile = factory.SubFactory(ProfileFactory) \ No newline at end of file + profile = factory.SubFactory(ProfileFactory) diff --git a/app/dashboard/tests/models/test_bounty_fulfillment.py b/app/dashboard/tests/models/test_bounty_fulfillment.py index 440c988ad1b..5b6c6cc71db 100644 --- a/app/dashboard/tests/models/test_bounty_fulfillment.py +++ b/app/dashboard/tests/models/test_bounty_fulfillment.py @@ -1,9 +1,9 @@ -from attr import has import pytest - +from attr import has from dashboard.models import BountyFulfillment -from dashboard.tests.factories.fulfillment_factory import FulfillmentFactory from dashboard.tests.factories.bounty_factory import BountyFactory +from dashboard.tests.factories.fulfillment_factory import FulfillmentFactory + @pytest.mark.django_db class TestBountyFulfillmentProperties: diff --git a/app/dashboard/tests/test_dashboard_models.py b/app/dashboard/tests/test_dashboard_models.py index 1b228707386..90d77949310 100644 --- a/app/dashboard/tests/test_dashboard_models.py +++ b/app/dashboard/tests/test_dashboard_models.py @@ -493,8 +493,8 @@ def test_profile_activate_avatar(): CustomAvatar.objects.create(profile=profile, config="{}") social_avatar = SocialAvatar.objects.create(profile=profile) profile.activate_avatar(social_avatar.pk) - assert profile.avatar_baseavatar_related.get(pk=1).active is False - assert profile.avatar_baseavatar_related.get(pk=2).active is True + assert profile.avatar_baseavatar_related.all().first().active is False + assert profile.avatar_baseavatar_related.all().last().active is True @staticmethod def test_bounty_snooze_url(): diff --git a/app/dashboard/tests/views/test_bounty_payout.py b/app/dashboard/tests/views/test_bounty_payout.py index 6cb2127b360..0a2f154b1ae 100644 --- a/app/dashboard/tests/views/test_bounty_payout.py +++ b/app/dashboard/tests/views/test_bounty_payout.py @@ -1,5 +1,5 @@ import pytest -from dashboard.tests.factories import ProfileFactory, BountyFactory, FulfillmentFactory +from dashboard.tests.factories import BountyFactory, FulfillmentFactory, ProfileFactory from rest_framework.test import APIClient diff --git a/app/grants/templates/grants/detail/template-grant-details.html b/app/grants/templates/grants/detail/template-grant-details.html index 77277b777e0..dc8cfb56e03 100644 --- a/app/grants/templates/grants/detail/template-grant-details.html +++ b/app/grants/templates/grants/detail/template-grant-details.html @@ -551,7 +551,7 @@
Verify your grant ownership to ensure that your supporters are contributing to the correct grant.
Step 1: Fill your twitter account into the grants twitter field @@ -577,31 +577,17 @@