Commit 3078d13b by Trevor Austin

Partial password pytest

parent f863eec6
......@@ -11,8 +11,18 @@ def client():
def test_static_html(client):
"""Serves the static html page and the root path"""
# TODO
rv = client.get('/')
assert rv.status == "200 OK"
assert b'<title>Single-Page Login and Post</title>' in rv.data
def test_signup_and_login(client):
"""Tests that I can log in with Trevor's credentials"""
# TDOD
"""Tests that I can log in with new credentials"""
new_username = "something cool"
new_password = "something weird"
client.post('/api/signup', json = {'username':new_username, 'password':new_password})
# response = try to log in with new_username and new_password
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment