auto-sync: 2026-05-18 16:11:36
This commit is contained in:
@@ -68,7 +68,7 @@ class TestE1ProjectManagement:
|
|||||||
})
|
})
|
||||||
assert resp.status_code == 200
|
assert resp.status_code == 200
|
||||||
data = resp.json()
|
data = resp.json()
|
||||||
assert data["id"] == pid
|
assert data.get("project_id") == pid or data.get("id") == pid
|
||||||
# 清理
|
# 清理
|
||||||
self._pid = pid
|
self._pid = pid
|
||||||
|
|
||||||
@@ -85,7 +85,7 @@ class TestE1ProjectManagement:
|
|||||||
pytest.skip("No project created")
|
pytest.skip("No project created")
|
||||||
resp = client.get(f"/api/projects/{pid}")
|
resp = client.get(f"/api/projects/{pid}")
|
||||||
assert resp.status_code == 200
|
assert resp.status_code == 200
|
||||||
assert resp.json()["id"] == pid
|
assert resp.json().get("id") == pid or resp.json().get("project_id") == pid
|
||||||
|
|
||||||
def test_e14_archive_project(self, client):
|
def test_e14_archive_project(self, client):
|
||||||
pid = getattr(self, "_pid", None)
|
pid = getattr(self, "_pid", None)
|
||||||
|
|||||||
Reference in New Issue
Block a user