mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Skip test_send_mail_with_user_locale if .mo files do not exist
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import os
|
||||
|
||||
import pytest
|
||||
from django.conf import settings
|
||||
from django.core import mail as djmail
|
||||
@@ -60,6 +62,10 @@ def test_send_mail_with_default_sender(env):
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
@pytest.mark.skipif(
|
||||
not os.path.exists(os.path.join(settings.LOCALE_PATHS[0], 'de', 'LC_MESSAGES', 'django.mo')),
|
||||
reason="requires locale files to be compiled"
|
||||
)
|
||||
def test_send_mail_with_user_locale(env):
|
||||
djmail.outbox = []
|
||||
event, user, organizer = env
|
||||
|
||||
Reference in New Issue
Block a user