mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 06:03:20 +00:00
Edited bar manager club to pdf (pdfesti) (#503)
* Edited bar manager club to pdf (pdfesti) * Fixed unit tests
This commit is contained in:
parent
e43d53e564
commit
6a0a8e8ab4
@ -33,6 +33,8 @@ from django.core.exceptions import ValidationError, NON_FIELD_ERRORS
|
|||||||
from core.models import User
|
from core.models import User
|
||||||
from club.models import Club, Membership, Mailing
|
from club.models import Club, Membership, Mailing
|
||||||
from club.forms import MailingForm
|
from club.forms import MailingForm
|
||||||
|
from sith.settings import SITH_BAR_MANAGER
|
||||||
|
|
||||||
|
|
||||||
# Create your tests here.
|
# Create your tests here.
|
||||||
|
|
||||||
@ -43,7 +45,7 @@ class ClubTest(TestCase):
|
|||||||
self.skia = User.objects.filter(username="skia").first()
|
self.skia = User.objects.filter(username="skia").first()
|
||||||
self.rbatsbak = User.objects.filter(username="rbatsbak").first()
|
self.rbatsbak = User.objects.filter(username="rbatsbak").first()
|
||||||
self.guy = User.objects.filter(username="guy").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):
|
def test_create_add_user_to_club_from_root_ok(self):
|
||||||
self.client.login(username="root", password="plop")
|
self.client.login(username="root", password="plop")
|
||||||
@ -390,7 +392,7 @@ class MailingFormTest(TestCase):
|
|||||||
self.rbatsbak = User.objects.filter(username="rbatsbak").first()
|
self.rbatsbak = User.objects.filter(username="rbatsbak").first()
|
||||||
self.krophil = User.objects.filter(username="krophil").first()
|
self.krophil = User.objects.filter(username="krophil").first()
|
||||||
self.comunity = User.objects.filter(username="comunity").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(
|
Membership(
|
||||||
user=self.rbatsbak,
|
user=self.rbatsbak,
|
||||||
club=self.bdf,
|
club=self.bdf,
|
||||||
|
@ -278,8 +278,8 @@ SITH_MAIN_CLUB = {
|
|||||||
|
|
||||||
# Bar managers
|
# Bar managers
|
||||||
SITH_BAR_MANAGER = {
|
SITH_BAR_MANAGER = {
|
||||||
"name": "BdF",
|
"name": "Pdf",
|
||||||
"unix_name": "bdf",
|
"unix_name": "pdfesti",
|
||||||
"address": "6 Boulevard Anatole France, 90000 Belfort",
|
"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_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 = [
|
SITH_COUNTER_PAYMENT_METHOD = [
|
||||||
("CHECK", _("Check")),
|
("CHECK", _("Check")),
|
||||||
|
Loading…
Reference in New Issue
Block a user