Exemplo n.º 1
0
def test_render_api(app):
    response = app.get(URL)
    assert response.status_code == 405
Exemplo n.º 2
0
def test_render(app):
    response = app.get('/pitchclassset/')
    assert response.status_code == 200
Exemplo 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
Exemplo n.º 4
0
def test_render(app):
    """Tests if view for download is rendered.
    """
    response = app.get('/download/')
    assert response.status_code == 200
Exemplo n.º 5
0
def test_render_api(app):
    """Tests if api is rendered.
    """
    response = app.get(URL)
    assert response.status_code == 405