Skip to content

Commit

Permalink
update cmd name to make it easy to find
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienReuiller committed Feb 4, 2025
1 parent ce74fc1 commit 6392e03
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clevercloud/tenders_update_status_to_rejected.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ fi
# $APP_HOME is set by default by clever cloud.
cd $APP_HOME

django-admin update_tender_status_to_rejected
django-admin tenders_update_status_to_rejected
4 changes: 2 additions & 2 deletions lemarche/tenders/tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def test_command_on_weekday_dry_run(self, mock_now, mock_send_email):
class UpdateTenderStatusToRejectedCommandTest(TestCase):
def test_update_tender_status_to_rejected(self):
"""
Test 'update_tender_status_to_rejected' command.
Test 'tenders_update_status_to_rejected' command.
"""
recent_date = timezone.now() - timedelta(days=5)
threshold_date = timezone.now() - timedelta(days=10)
Expand All @@ -210,7 +210,7 @@ def test_update_tender_status_to_rejected(self):

tender_with_no_modification_request = TenderFactory(status=tender_constants.STATUS_DRAFT)

call_command("update_tender_status_to_rejected")
call_command("tenders_update_status_to_rejected")

tender_recent.refresh_from_db()
tender_expired.refresh_from_db()
Expand Down

0 comments on commit 6392e03

Please sign in to comment.