fix failing test

master
Richard van der Hoff 5 years ago
parent c272f2f075
commit 1bcf50287c

@ -1,7 +1,10 @@
import logging
from typing import Optional
from matrix_synapse_saml_mozilla import SamlMappingProvider
logging.basicConfig()
def create_mapping_provider(config_dict: Optional[dict] = None) -> SamlMappingProvider:
# Default configuration

@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import logging
import re
import time
import unittest
@ -29,8 +28,6 @@ from matrix_synapse_saml_mozilla._sessions import username_mapping_sessions
from . import create_mapping_provider
logging.basicConfig()
class FakeResponse:
def __init__(self, source_uid, display_name):
@ -58,6 +55,8 @@ def _load_test_response() -> AuthnResponse:
allow_unsolicited=True,
# tell it not to check the `destination`
asynchop=False,
# tell it not to check the issue time
timeslack=20 * 365 * 24 * 3600,
)
response.loads(response_xml, decode=False, origxml=response_xml)
response.verify()

Loading…
Cancel
Save