blob: 1580621d78df3d8a7959f835a89c46e1cd198244 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import pytest
@pytest.fixture
def lazy_project(gl, project):
return gl.projects.get(project.path_with_namespace, lazy=True)
def test_refresh_after_lazy_get_with_path(project, lazy_project):
lazy_project.refresh()
assert lazy_project.id == project.id
def test_save_after_lazy_get_with_path(project, lazy_project):
lazy_project.description = "A new description"
lazy_project.save()
assert lazy_project.id == project.id
assert lazy_project.description == "A new description"
@pytest.mark.xfail(reason="See #1494")
def test_delete_after_lazy_get_with_path(gl, lazy_project):
lazy_project.delete()
|