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
748d1819
authored
Mar 10, 2021
by
Trevor Austin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove tests for passwords app
parent
326cb853
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
week_9/examples/passwords_with_tests/test_bcrypt_example.py
week_9/examples/passwords_with_tests/test_bcrypt_example.py
View file @
748d1819
...
...
@@ -11,17 +11,8 @@ def client():
def
test_static_html
(
client
):
"""Serves the static html page and the root path"""
rv
=
client
.
get
(
'/'
)
assert
b
'<title>Single-Page Login and Post</title>'
in
rv
.
data
# TODO
def
test_signup_and_login
(
client
):
"""Tests that I can log in with Trevor's credentials"""
new_username
=
"something cool"
new_password
=
"something weird"
client
.
post
(
'/api/signup'
,
json
=
{
'username'
:
new_username
,
'password'
:
new_password
})
response
=
client
.
post
(
'/api/login'
,
json
=
{
'username'
:
new_username
,
'password'
:
new_password
})
assert
response
.
status_code
==
200
# TDOD
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