Пример #1
0
def setup(data):
    project.using_project('general')
    actions.store('dir', actions.random_str())
    project.create_suite_directory(data.project, data.dir)
Пример #2
0
def test(data):
    dir_name = actions.random_str()
    response = project.create_suite_directory(data.project, dir_name)
    assert response.status_code == 200
    assert response.json()['errors'] == []
Пример #3
0
def test(data):
    response = project.create_suite_directory(data.project, data.dir_name)
    assert response.json()['errors'] == [
        'A directory with that name already exists'
    ]
Пример #4
0
def test_create_suite_directory_exists(data):
    dir_name = actions.random_str()
    project.create_suite_directory(data.project, dir_name)
    response = project.create_suite_directory(data.project, dir_name)
    assert response.json()['errors'] == ['A directory with that name already exists']