Esempio n. 1
0
def test_render_api(app):
    response = app.get(URL)
    assert response.status_code == 405
def test_render(app):
    response = app.get('/pitchclassset/')
    assert response.status_code == 200
Esempio n. 3
0
def test_download_sample(app):
    """Checks if the sample can be downloaded.
    """
    response = app.get('/download/sample/')
    assert response.status_code == 200
Esempio n. 4
0
def test_render(app):
    """Tests if view for download is rendered.
    """
    response = app.get('/download/')
    assert response.status_code == 200
Esempio n. 5
0
def test_render_api(app):
    """Tests if api is rendered.
    """
    response = app.get(URL)
    assert response.status_code == 405