Ejemplo n.º 1
0
def test_update_project_logo(ltd_client: ListTheDocs):

    ltd_client.add_project(
        Project(title='test_project1', description='description1'))

    project = ltd_client.update_project('test_project1', logo='logo.jpg')
    assert project.code == 'test_project1'
    assert project.title == 'test_project1'
    assert project.description == 'description1'
    assert project.logo == 'logo.jpg'
Ejemplo n.º 2
0
def test_update_project_description(ltd_client: ListTheDocs):

    ltd_client.add_project(
        Project(title='test_project1', description='description1'))

    project = ltd_client.update_project('test_project1',
                                        description='new description')
    assert project.code == 'test_project1'
    assert project.title == 'test_project1'
    assert project.description == 'new description'