Exemplo n.º 1
0
def test_field(clients):
    illegalize(
        clients,
        "/api/{table}/item/{eid}/field/{field}",
        table=CONTRIB,
        eid=DUMMY_ID,
        field=TITLE,
    )
Exemplo n.º 2
0
def test_insertDetail(clients):
    illegalize(
        clients,
        "/api/{table}/{eid}/{dtable}/insert",
        table=CONTRIB,
        eid=DUMMY_ID,
        dtable=CONTRIB,
    )
Exemplo n.º 3
0
def test_itemDetail(clients):
    illegalize(
        clients,
        "/{table}/item/{eid}/open/{dtable}/{deid}",
        table=CONTRIB,
        eid=DUMMY_ID,
        dtable=CONTRIB,
        deid=DUMMY_ID,
    )
Exemplo n.º 4
0
def test_deleteDetail(clients):
    illegalize(
        clients,
        "/api/{table}/{masterId}/{dtable}/delete/{eid}",
        table=CONTRIB,
        masterId=DUMMY_ID,
        dtable=CONTRIB,
        eid=DUMMY_ID,
    )
Exemplo n.º 5
0
def test_itemPage(clients):
    illegalize(clients, "/{table}/item/{eid}", table=CONTRIB, eid=DUMMY_ID)
Exemplo n.º 6
0
def test_itemTitle(clients):
    illegalize(clients,
               "/api/{table}/item/{eid}/title",
               table=CONTRIB,
               eid=DUMMY_ID)
Exemplo n.º 7
0
def test_delete(clients):
    illegalize(clients,
               "/api/{table}/delete/{eid}",
               table=CONTRIB,
               eid=DUMMY_ID)
Exemplo n.º 8
0
def test_list(clients):
    illegalize(clients, "/{table}/list", table=CONTRIB)
Exemplo n.º 9
0
def test_listOpen(clients):
    illegalize(clients, "/{table}/list/{eid}", table=CONTRIB, eid=DUMMY_ID)
Exemplo n.º 10
0
def test_insert(clients):
    illegalize(clients, "/api/{table}/insert", table=CONTRIB)
Exemplo n.º 11
0
def test_task(clients):
    illegalize(clients,
               "/api/task/{task}/{eid}",
               task=SUBMIT_ASSESSMENT,
               eid=DUMMY_ID)
Exemplo n.º 12
0
def test_workflow(clients):
    url = "/workflow"
    expect = {user: 302 if user in {SYSTEM, ROOT} else 303 for user in USERS}
    forall(clients, expect, assertStatus, url)
    illegalize(clients, url)
Exemplo n.º 13
0
def test_info(clients):
    illegalize(clients, "/info")
    illegalize(clients, "/info.tsv")
Exemplo n.º 14
0
def test_home(clients):
    for url in ["/", "/index", "/index.html"]:
        illegalize(clients, url)