We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24bc3a5 commit 3f94170Copy full SHA for 3f94170
tests/functional/api/test_mixins.py
@@ -0,0 +1,25 @@
1
+import pytest
2
+
3
+import gitlab
4
5
6
+@pytest.fixture
7
+def lazy_project(gl, project):
8
+ return gl.projects.get(project.path_with_namespace, lazy=True)
9
10
11
+def test_refresh_after_lazy_get_with_path(project, lazy_project):
12
+ lazy_project.refresh()
13
+ assert lazy_project.id == project.id
14
15
16
+def test_save_after_lazy_get_with_path(project, lazy_project):
17
+ lazy_project.description = "A new description"
18
+ lazy_project.save()
19
20
+ assert lazy_project.description == "A new description"
21
22
23
+@pytest.mark.xfail(reason="See #1494")
24
+def test_delete_after_lazy_get_with_path(gl, lazy_project):
25
+ lazy_project.delete()
0 commit comments