mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-13 21:39:23 +00:00
Mise à jour d'avril (#643)
This commit is contained in:
@ -113,6 +113,8 @@ MIDDLEWARE = (
|
||||
"core.middleware.SignalRequestMiddleware",
|
||||
)
|
||||
|
||||
TEST_RUNNER = "sith.testrunner.SithTestRunner"
|
||||
|
||||
ROOT_URLCONF = "sith.urls"
|
||||
|
||||
TEMPLATES = [
|
||||
@ -450,7 +452,7 @@ SITH_PEDAGOGY_UV_LANGUAGE = [
|
||||
("FR", _("French")),
|
||||
("EN", _("English")),
|
||||
("DE", _("German")),
|
||||
("SP", _("Spanich")),
|
||||
("SP", _("Spanish")),
|
||||
]
|
||||
|
||||
SITH_PEDAGOGY_UV_RESULT_GRADE = [
|
||||
@ -568,8 +570,6 @@ SITH_SUBSCRIPTIONS = {
|
||||
# To be completed....
|
||||
}
|
||||
|
||||
SITH_CLUB_ROLES = {}
|
||||
|
||||
SITH_CLUB_ROLES_ID = {
|
||||
"President": 10,
|
||||
"Vice-President": 9,
|
||||
@ -595,7 +595,8 @@ SITH_CLUB_ROLES = {
|
||||
}
|
||||
|
||||
# This corresponds to the maximum role a user can freely subscribe to
|
||||
# In this case, SITH_MAXIMUM_FREE_ROLE=1 means that a user can set himself as "Membre actif" or "Curieux", but not higher
|
||||
# In this case, SITH_MAXIMUM_FREE_ROLE=1 means that a user can
|
||||
# set himself as "Membre actif" or "Curieux", but not higher
|
||||
SITH_MAXIMUM_FREE_ROLE = 1
|
||||
|
||||
# Minutes to timeout the logged barmen
|
||||
|
9
sith/testrunner.py
Normal file
9
sith/testrunner.py
Normal file
@ -0,0 +1,9 @@
|
||||
from django.core.management import call_command
|
||||
from django.test.runner import DiscoverRunner
|
||||
|
||||
|
||||
class SithTestRunner(DiscoverRunner):
|
||||
def setup_databases(self, **kwargs):
|
||||
res = super().setup_databases(**kwargs)
|
||||
call_command("populate")
|
||||
return res
|
Reference in New Issue
Block a user