Esempio 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
Esempio 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
Esempio 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
Esempio 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
Esempio 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
Esempio 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
Esempio 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
Esempio 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
Esempio 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
Esempio 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
Esempio 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
Esempio n. 12
0
 def test_member_get():
     r = tests.a_get("/api/v1/roles/the-a-team/0")
     assert r.status_code == 200
Esempio n. 13
0
 def test_member_get():
     r = tests.a_get("/api/v1/roles/the-a-team/0")
     assert r.status_code == 200
Esempio n. 14
0
 def test_team_get():
     r = tests.a_get("/api/v1/teams/the-a-team")
     assert r.status_code == 200
Esempio 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
Esempio 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
Esempio 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
Esempio n. 18
0
 def test_project_get():
     r = tests.a_get("/api/v1/projects/the-a-team/TEST")
     assert r.status_code == 200
Esempio n. 19
0
 def test_team_get():
     r = tests.a_get("/api/v1/teams/the-a-team")
     assert r.status_code == 200