Ejemplo n.º 1
0
 def test_delete_suite(self, project_session, test_utils):
     _, project = project_session.activate()
     suite_name = test_utils.create_random_suite(project)
     errors = suite.delete_suite(project, suite_name)
     assert errors == []
     assert suite_name not in Project(project).suites()
Ejemplo n.º 2
0
 def test_delete_suite_not_exist(self, project_session):
     _, project = project_session.activate()
     errors = suite.delete_suite(project, 'not-exist')
     assert errors == ['Suite not-exist does not exist']
Ejemplo n.º 3
0
def suite_delete():
    project = request.json['project']
    page_name = request.json['fullPath']
    _verify_permissions(Permissions.ADMIN, project)
    errors = suite_module.delete_suite(project, page_name)
    return jsonify(errors)