From 6a0a8e8ab4a1c771554646cc91af966379b28bb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20DURR?= Date: Thu, 8 Dec 2022 18:26:41 +0100 Subject: [PATCH] Edited bar manager club to pdf (pdfesti) (#503) * Edited bar manager club to pdf (pdfesti) * Fixed unit tests --- club/tests.py | 6 ++++-- sith/settings.py | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/club/tests.py b/club/tests.py index 63b48f47..b7f3226f 100644 --- a/club/tests.py +++ b/club/tests.py @@ -33,6 +33,8 @@ from django.core.exceptions import ValidationError, NON_FIELD_ERRORS from core.models import User from club.models import Club, Membership, Mailing from club.forms import MailingForm +from sith.settings import SITH_BAR_MANAGER + # Create your tests here. @@ -43,7 +45,7 @@ class ClubTest(TestCase): self.skia = User.objects.filter(username="skia").first() self.rbatsbak = User.objects.filter(username="rbatsbak").first() self.guy = User.objects.filter(username="guy").first() - self.bdf = Club.objects.filter(unix_name="bdf").first() + self.bdf = Club.objects.filter(unix_name=SITH_BAR_MANAGER["unix_name"]).first() def test_create_add_user_to_club_from_root_ok(self): self.client.login(username="root", password="plop") @@ -390,7 +392,7 @@ class MailingFormTest(TestCase): self.rbatsbak = User.objects.filter(username="rbatsbak").first() self.krophil = User.objects.filter(username="krophil").first() self.comunity = User.objects.filter(username="comunity").first() - self.bdf = Club.objects.filter(unix_name="bdf").first() + self.bdf = Club.objects.filter(unix_name=SITH_BAR_MANAGER["unix_name"]).first() Membership( user=self.rbatsbak, club=self.bdf, diff --git a/sith/settings.py b/sith/settings.py index 3f15ad35..1a2ed664 100644 --- a/sith/settings.py +++ b/sith/settings.py @@ -278,8 +278,8 @@ SITH_MAIN_CLUB = { # Bar managers SITH_BAR_MANAGER = { - "name": "BdF", - "unix_name": "bdf", + "name": "Pdf", + "unix_name": "pdfesti", "address": "6 Boulevard Anatole France, 90000 Belfort", } @@ -376,7 +376,7 @@ SITH_SUBSCRIPTION_LOCATIONS = [ SITH_COUNTER_BARS = [(1, "MDE"), (2, "Foyer"), (35, "La Gommette")] -SITH_COUNTER_OFFICES = {2: "BdF", 1: "AE"} +SITH_COUNTER_OFFICES = {2: "PdF", 1: "AE"} SITH_COUNTER_PAYMENT_METHOD = [ ("CHECK", _("Check")),