mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Bump bleach version so that tests can run on old deps.
This commit is contained in:
parent
453aaaadc0
commit
a766c41d25
@ -80,7 +80,7 @@ REQUIREMENTS = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
CONDITIONAL_REQUIREMENTS = {
|
CONDITIONAL_REQUIREMENTS = {
|
||||||
"email": ["Jinja2>=2.9", "bleach>=1.4.2"],
|
"email": ["Jinja2>=2.9", "bleach>=1.4.3"],
|
||||||
"matrix-synapse-ldap3": ["matrix-synapse-ldap3>=0.1"],
|
"matrix-synapse-ldap3": ["matrix-synapse-ldap3>=0.1"],
|
||||||
|
|
||||||
# we use execute_batch, which arrived in psycopg 2.7.
|
# we use execute_batch, which arrived in psycopg 2.7.
|
||||||
|
@ -24,15 +24,9 @@ from synapse.rest.client.v1 import login, room
|
|||||||
|
|
||||||
from tests.unittest import HomeserverTestCase
|
from tests.unittest import HomeserverTestCase
|
||||||
|
|
||||||
try:
|
|
||||||
from synapse.push.mailer import load_jinja2_templates
|
|
||||||
except Exception:
|
|
||||||
load_jinja2_templates = None
|
|
||||||
|
|
||||||
|
|
||||||
class EmailPusherTests(HomeserverTestCase):
|
class EmailPusherTests(HomeserverTestCase):
|
||||||
|
|
||||||
skip = "No Jinja installed" if not load_jinja2_templates else None
|
|
||||||
servlets = [
|
servlets = [
|
||||||
synapse.rest.admin.register_servlets_for_client_rest_resource,
|
synapse.rest.admin.register_servlets_for_client_rest_resource,
|
||||||
room.register_servlets,
|
room.register_servlets,
|
||||||
|
@ -23,15 +23,9 @@ from synapse.util.logcontext import make_deferred_yieldable
|
|||||||
|
|
||||||
from tests.unittest import HomeserverTestCase
|
from tests.unittest import HomeserverTestCase
|
||||||
|
|
||||||
try:
|
|
||||||
from synapse.push.mailer import load_jinja2_templates
|
|
||||||
except Exception:
|
|
||||||
load_jinja2_templates = None
|
|
||||||
|
|
||||||
|
|
||||||
class HTTPPusherTests(HomeserverTestCase):
|
class HTTPPusherTests(HomeserverTestCase):
|
||||||
|
|
||||||
skip = "No Jinja installed" if not load_jinja2_templates else None
|
|
||||||
servlets = [
|
servlets = [
|
||||||
synapse.rest.admin.register_servlets_for_client_rest_resource,
|
synapse.rest.admin.register_servlets_for_client_rest_resource,
|
||||||
room.register_servlets,
|
room.register_servlets,
|
||||||
|
@ -23,14 +23,8 @@ from synapse.rest.consent import consent_resource
|
|||||||
from tests import unittest
|
from tests import unittest
|
||||||
from tests.server import render
|
from tests.server import render
|
||||||
|
|
||||||
try:
|
|
||||||
from synapse.push.mailer import load_jinja2_templates
|
|
||||||
except Exception:
|
|
||||||
load_jinja2_templates = None
|
|
||||||
|
|
||||||
|
|
||||||
class ConsentResourceTestCase(unittest.HomeserverTestCase):
|
class ConsentResourceTestCase(unittest.HomeserverTestCase):
|
||||||
skip = "No Jinja installed" if not load_jinja2_templates else None
|
|
||||||
servlets = [
|
servlets = [
|
||||||
synapse.rest.admin.register_servlets_for_client_rest_resource,
|
synapse.rest.admin.register_servlets_for_client_rest_resource,
|
||||||
room.register_servlets,
|
room.register_servlets,
|
||||||
|
@ -30,11 +30,6 @@ from synapse.rest.client.v2_alpha import account_validity, register, sync
|
|||||||
|
|
||||||
from tests import unittest
|
from tests import unittest
|
||||||
|
|
||||||
try:
|
|
||||||
from synapse.push.mailer import load_jinja2_templates
|
|
||||||
except ImportError:
|
|
||||||
load_jinja2_templates = None
|
|
||||||
|
|
||||||
|
|
||||||
class RegisterRestServletTestCase(unittest.HomeserverTestCase):
|
class RegisterRestServletTestCase(unittest.HomeserverTestCase):
|
||||||
|
|
||||||
@ -307,7 +302,6 @@ class AccountValidityTestCase(unittest.HomeserverTestCase):
|
|||||||
|
|
||||||
class AccountValidityRenewalByEmailTestCase(unittest.HomeserverTestCase):
|
class AccountValidityRenewalByEmailTestCase(unittest.HomeserverTestCase):
|
||||||
|
|
||||||
skip = "No Jinja installed" if not load_jinja2_templates else None
|
|
||||||
servlets = [
|
servlets = [
|
||||||
register.register_servlets,
|
register.register_servlets,
|
||||||
synapse.rest.admin.register_servlets_for_client_rest_resource,
|
synapse.rest.admin.register_servlets_for_client_rest_resource,
|
||||||
|
Loading…
Reference in New Issue
Block a user