test: palier 18 — login/session, sidebar, hydratation des instantanés

This commit is contained in:
Spark
2026-10-14 08:02:49 -04:00
parent b7d21f80df
commit e63fe39578
4 changed files with 169 additions and 1 deletions
+20
View File
@@ -271,6 +271,26 @@ class FakeGitea:
},
]
# ── Snapshots (chantier B, 0.22.0) : le faux reflète
# l'interface du vrai client.
def hydrate_from_snapshots(self):
return 0
def latest_snapshot_at(self):
return None
async def refresh_search_repos(self):
return await self.search_repos()
async def refresh_starred(self):
return await self.list_starred()
async def refresh_repo_issues(self, owner, repo, state="all"):
return await self.get_repo_issues(owner, repo, state=state)
async def refresh_milestones(self, owner, repo):
return await self.get_milestones(owner, repo)
async def list_starred(self):
return [r for r in self.repos if r["full_name"] in self.starred]