Exemplo n.º 1
0
 def test_member_delete():
     r = tests.t_delete("/api/v1/roles/the-a-team/0")
     assert r.status_code == 401
     r = tests.a_delete("/api/v1/roles/the-a-team/0")
     assert r.status_code == 200
     r = tests.a_get("/api/v1/roles/the-a-team/0")
     assert r.status_code == 404
Exemplo n.º 2
0
 def test_ticket_delete(self):
     r = tests.t_delete("/api/v1/tickets/the-a-team/TEST/TEST-10")
     assert r.status_code == 401
     r = tests.a_delete("/api/v1/tickets/the-a-team/TEST/TEST-10")
     assert r.status_code == 200
     r = tests.a_get("/api/v1/tickets/the-a-team/TEST/TEST-10")
     assert r.status_code == 404
Exemplo n.º 3
0
 def test_team_delete():
     r = tests.t_delete("/api/v1/teams/the-a-team")
     assert r.status_code == 401
     r = tests.a_delete("/api/v1/teams/the-a-team")
     assert r.status_code == 200
     r = tests.a_get("/api/v1/teams/the-a-team")
     assert r.status_code == 404
Exemplo n.º 4
0
 def test_member_delete():
     r = tests.t_delete("/api/v1/roles/the-a-team/0")
     assert r.status_code == 401
     r = tests.a_delete("/api/v1/roles/the-a-team/0")
     assert r.status_code == 200
     r = tests.a_get("/api/v1/roles/the-a-team/0")
     assert r.status_code == 404
Exemplo n.º 5
0
 def test_team_delete():
     r = tests.t_delete("/api/v1/teams/the-a-team")
     assert r.status_code == 401
     r = tests.a_delete("/api/v1/teams/the-a-team")
     assert r.status_code == 200
     r = tests.a_get("/api/v1/teams/the-a-team")
     assert r.status_code == 404
Exemplo n.º 6
0
 def test_project_delete():
     r = tests.t_delete("/api/v1/projects/the-a-team/TEST2")
     assert r.status_code == 401
     r = tests.a_delete("/api/v1/projects/the-a-team/TEST2")
     assert r.status_code == 200
     r = tests.a_get("/api/v1/projects/the-a-team/TEST2")
     assert r.status_code == 404
Exemplo n.º 7
0
 def test_field_delete(self):
     r = tests.t_delete("/api/v1/fields/1")
     assert r.status_code == 401
     r = tests.a_delete("/api/v1/fields/1")
     assert r.status_code == 200
     r = tests.a_get("/api/v1/fields/1")
     assert r.status_code == 404
Exemplo n.º 8
0
 def test_field_delete(self):
     r = tests.t_delete("/api/v1/fields/1")
     assert r.status_code == 401
     r = tests.a_delete("/api/v1/fields/1")
     assert r.status_code == 200
     r = tests.a_get("/api/v1/fields/1")
     assert r.status_code == 404
Exemplo n.º 9
0
 def test_user_delete():
     r = tests.t_delete("/api/v1/users/lionize")
     assert r.status_code == 401
     r = tests.a_delete("/api/v1/users/lionize")
     assert r.status_code == 403
     r = tests.a_delete("/api/v1/users/lionize", admin=True)
     assert r.status_code == 200
     r = tests.a_get("/api/v1/users/lionize")
     assert r.status_code == 404
Exemplo n.º 10
0
 def test_user_delete():
     r = tests.t_delete("/api/v1/users/lionize")
     assert r.status_code == 401
     r = tests.a_delete("/api/v1/users/lionize")
     assert r.status_code == 403
     r = tests.a_delete("/api/v1/users/lionize", admin=True)
     assert r.status_code == 200
     r = tests.a_get("/api/v1/users/lionize")
     assert r.status_code == 404
Exemplo n.º 11
0
 def test_status_get():
     r = tests.t_get("/api/v1/statuses/0")
     assert r.status_code == 401
     r = tests.a_get("/api/v1/statuses/0")
     assert r.status_code == 200
Exemplo n.º 12
0
 def test_member_get():
     r = tests.a_get("/api/v1/roles/the-a-team/0")
     assert r.status_code == 200
Exemplo n.º 13
0
 def test_member_get():
     r = tests.a_get("/api/v1/roles/the-a-team/0")
     assert r.status_code == 200
Exemplo n.º 14
0
 def test_team_get():
     r = tests.a_get("/api/v1/teams/the-a-team")
     assert r.status_code == 200
Exemplo n.º 15
0
 def test_ticket_get(self):
     r = tests.a_get("/api/v1/tickets/the-a-team/TEST/TEST-1")
     assert r.status_code == 200
Exemplo n.º 16
0
 def test_field_get(self):
     r = tests.t_get("/api/v1/fields/0")
     assert r.status_code == 404
     r = tests.a_get("/api/v1/fields/0")
     assert r.status_code == 200
Exemplo n.º 17
0
 def test_field_get(self):
     r = tests.t_get("/api/v1/fields/0")
     assert r.status_code == 404
     r = tests.a_get("/api/v1/fields/0")
     assert r.status_code == 200
Exemplo n.º 18
0
 def test_project_get():
     r = tests.a_get("/api/v1/projects/the-a-team/TEST")
     assert r.status_code == 200
Exemplo n.º 19
0
 def test_team_get():
     r = tests.a_get("/api/v1/teams/the-a-team")
     assert r.status_code == 200