Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Trevor Austin
/
mpcs-52553-austin-winter-2021
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Pipelines
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3078d13b
authored
Mar 10, 2021
by
Trevor Austin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partial password pytest
parent
f863eec6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
week_9/examples/passwords_with_tests/test_bcrypt_example.py
week_9/examples/passwords_with_tests/test_bcrypt_example.py
View file @
3078d13b
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment