Example #1
0
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
Example #2
0
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
Example #3
0
def test_emails(template_name, params, initialized_db):
    render_email("Test App", "test.quay", "*****@*****.**", "Hello There!",
                 template_name, params)
Example #4
0
def test_emails(template_name, params, initialized_db):
  render_email('Test App', 'test.quay', '*****@*****.**', 'Hello There!', template_name, params)