From f68c1dff68794cb45dd47bbd3d269e9db27ca007 Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Fri, 1 Dec 2023 09:39:40 +0100 Subject: [PATCH] Fix tests --- .../tenders/_detail_admin_extra_info.html | 4 ++-- .../tenders/_detail_side_infos_author.html | 2 +- lemarche/templates/tenders/list.html | 8 +++---- lemarche/tenders/admin.py | 2 +- lemarche/tenders/factories.py | 5 ++-- lemarche/tenders/tests.py | 6 +++-- lemarche/utils/mixins.py | 6 ++--- lemarche/www/dashboard_networks/tests.py | 2 +- lemarche/www/tenders/tests.py | 24 ++++++++++++++----- lemarche/www/tenders/views.py | 4 ++-- 10 files changed, 39 insertions(+), 24 deletions(-) diff --git a/lemarche/templates/tenders/_detail_admin_extra_info.html b/lemarche/templates/tenders/_detail_admin_extra_info.html index 4e5b05872..d4365f86e 100644 --- a/lemarche/templates/tenders/_detail_admin_extra_info.html +++ b/lemarche/templates/tenders/_detail_admin_extra_info.html @@ -7,8 +7,8 @@

Informations Admin

Publié le {{ tender.published_at|date }}
  • - {% if tender.is_validated %} - Validé le {{ tender.validated_at|date }} + {% if tender.is_sent %} + Validé le {{ tender.sent_at|date }} {% else %} Statut : {{ tender.get_status_display }} {% endif %} diff --git a/lemarche/templates/tenders/_detail_side_infos_author.html b/lemarche/templates/tenders/_detail_side_infos_author.html index d98847e18..d8c95fc0b 100644 --- a/lemarche/templates/tenders/_detail_side_infos_author.html +++ b/lemarche/templates/tenders/_detail_side_infos_author.html @@ -26,7 +26,7 @@ {% endif %} -{% if tender.is_validated %} +{% if tender.is_sent %}
    diff --git a/lemarche/templates/tenders/list.html b/lemarche/templates/tenders/list.html index 540f7774f..0df3388e5 100644 --- a/lemarche/templates/tenders/list.html +++ b/lemarche/templates/tenders/list.html @@ -47,7 +47,7 @@

    {{ page_title }}

    {% url 'tenders:list' as TENDERS_LIST_URL %} {% url 'tenders:list' status=tender_constants.STATUS_DRAFT as TENDERS_DRAFT_LIST_URL %} {% url 'tenders:list' status=tender_constants.STATUS_PUBLISHED as TENDERS_PUBLISHED_LIST_URL %} - {% url 'tenders:list' status=tender_constants.STATUS_VALIDATED as TENDERS_VALIDATED_LIST_URL %} + {% url 'tenders:list' status=tender_constants.STATUS_SENT as TENDERS_SENT_LIST_URL %}