Esempio n. 1
0
def test_signup_new_account(app):
    username = random_string("user_", 10)
    email = username + "@localhost"
    password = "******"
    app.james.ensure_user_exists(username, password)
    app.signup.new_user(username, email, password)
    assert app.soap.can_login(username, password)
Esempio n. 2
0
def test_soap(app):
    old_projects_list = app.soap.get_project_list(username=app.config['webadmin']['username'],
                                     password=app.config['webadmin']['password'])
    project = Project(name=random_string("test", 2), status="development", view_status="public",
                      description="description")

    app.project.add_project(project)
    old_projects_list.append(project)
    new_project_list = app.project.get_mantis_project_list()
    assert sorted(new_project_list, key=Project.if_or_max) == sorted(old_projects_list, key=Project.if_or_max)