Remove old tests
I'm not building the API that way any more and I want all my tests to pass now
This commit is contained in:
parent
8fbf13b17c
commit
57ac625ce0
|
@ -1,3 +0,0 @@
|
||||||
def test_about(client):
|
|
||||||
response = client.get('/about/')
|
|
||||||
assert response.status_code == 200
|
|
|
@ -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',
|
|
||||||
}
|
|
Loading…
Reference in New Issue