diff --git a/joboffers/tests/test_notify-pending_moderation_offers.py b/joboffers/tests/test_notify-pending_moderation_offers.py index 900f4ad..d52035e 100644 --- a/joboffers/tests/test_notify-pending_moderation_offers.py +++ b/joboffers/tests/test_notify-pending_moderation_offers.py @@ -7,7 +7,7 @@ from joboffers.constants import PENDING_MODERATION_OFFER_DAYS, TELEGRAM_PENDING_MODERATION_MESSAGE from joboffers.models import JobOffer, OfferState from joboffers.management.commands.notify_pending_moderation_offers import ( - notify_pending_moderation_offers + notify_pending_moderation_offers ) from .factories import JobOfferFactory from .fixtures import create_telegram_dummy # noqa @@ -15,9 +15,7 @@ @pytest.mark.django_db def test_remind_offers_in_moderation(telegram_dummy): - """ - Test expiration of old joboffers command - """ + """Expiration of old joboffers command.""" today = timezone.now() two_hundred_days_ago = today - timedelta(days=200) JobOfferFactory.create() @@ -35,6 +33,6 @@ def test_remind_offers_in_moderation(telegram_dummy): assert offers_notified == 1 assert len(telegram_history) == 1 assert sent_message.endswith(TELEGRAM_PENDING_MODERATION_MESSAGE.format( - offer_url=offer2.get_absolute_url(), - moderation_reminder_days=PENDING_MODERATION_OFFER_DAYS + offer_url=offer2.get_full_url(), + moderation_reminder_days=PENDING_MODERATION_OFFER_DAYS ))