def test_render_email(): params = { "username": "******", "new_email": "*****@*****.**", } html, plain = render_email("Test App", "test.quay", "*****@*****.**", "Hello There!", "emailchanged", params) assert "https://quay.io/contact/" in html assert "https://quay.io/contact/" in plain
def test_render_email(): params = { 'username': '******', 'new_email': '*****@*****.**', } html, plain = render_email('Test App', 'test.quay', '*****@*****.**', 'Hello There!', 'emailchanged', params) assert 'https://quay.io/contact/' in html assert 'https://quay.io/contact/' in plain
def test_emails(template_name, params, initialized_db): render_email("Test App", "test.quay", "*****@*****.**", "Hello There!", template_name, params)
def test_emails(template_name, params, initialized_db): render_email('Test App', 'test.quay', '*****@*****.**', 'Hello There!', template_name, params)