From 57ac625ce0f4efef5da7a37050b6cb9bca89a236 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Thu, 23 Jun 2016 10:28:37 -0600 Subject: [PATCH] Remove old tests I'm not building the API that way any more and I want all my tests to pass now --- tests/api/test_about.py | 3 --- tests/api/test_user.py | 27 --------------------------- 2 files changed, 30 deletions(-) delete mode 100644 tests/api/test_about.py delete mode 100644 tests/api/test_user.py diff --git a/tests/api/test_about.py b/tests/api/test_about.py deleted file mode 100644 index b08e28f..0000000 --- a/tests/api/test_about.py +++ /dev/null @@ -1,3 +0,0 @@ -def test_about(client): - response = client.get('/about/') - assert response.status_code == 200 diff --git a/tests/api/test_user.py b/tests/api/test_user.py deleted file mode 100644 index 1e3d2ed..0000000 --- a/tests/api/test_user.py +++ /dev/null @@ -1,27 +0,0 @@ -import json - -import pytest - -import vanth.platform.user - - -@pytest.mark.usefixtures('db') -def test_post(client): - data = { - 'name' : 'Blue Stahli', - 'password' : 'metamorphosis', - 'username' : 'BlueStahli', - } - response = client.post('/user/', data=json.dumps(data)) - assert response.status_code == 204 - assert response.headers['Location'] - -@pytest.mark.usefixtures('db') -def test_get(client): - location = vanth.platform.user.create('Blue Stahli', 'blue@stahli.com', 'metamorphosis') - response = client.get(location) - assert response.status_code == 200 - assert response.json == { - 'name' : 'Blue Stahli', - 'username' : 'blue@stahli.com', - }