Fix appr tests to use the shared test fixtures
This commit is contained in:
parent
cc09e8738e
commit
d895b4d5ff
6 changed files with 20 additions and 86 deletions
|
@ -30,7 +30,7 @@ def test_login(login_data, expected_code, app, client):
|
|||
if "+" in login_data['username'] and login_data['password'] is None:
|
||||
username, robotname = login_data['username'].split("+")
|
||||
_, login_data['password'] = model.user.create_robot(robotname, model.user.get_user(username))
|
||||
app.register_blueprint(appr_bp, url_prefix='/cnr')
|
||||
|
||||
url = url_for('appr.login')
|
||||
headers = {'Content-Type': 'application/json'}
|
||||
data = {'user': login_data}
|
||||
|
|
Reference in a new issue