From a56c7f59d31595d4530427d863613f14ea04819a Mon Sep 17 00:00:00 2001 From: Martyn Inglis Date: Tue, 19 Jan 2016 13:59:45 +0000 Subject: [PATCH] Fixed test that had a clash on user ids --- tests/app/user/test_rest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/app/user/test_rest.py b/tests/app/user/test_rest.py index e6cf0ee3b..38f5dc13e 100644 --- a/tests/app/user/test_rest.py +++ b/tests/app/user/test_rest.py @@ -351,10 +351,10 @@ def test_delete_user_not_exists(notify_api, notify_db, notify_db_session, sample with notify_api.test_client() as client: assert User.query.count() == 2 auth_header = create_authorization_header(service_id=sample_admin_service_id, - path=url_for('user.update_user', user_id='123'), + path=url_for('user.update_user', user_id='99999'), method='DELETE') resp = client.delete( - url_for('user.update_user', user_id="123"), + url_for('user.update_user', user_id="99999"), headers=[('Content-Type', 'application/json'), auth_header]) assert resp.status_code == 404 assert User.query.count() == 2