Skip to content

Commit

Permalink
test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
vEpiphyte committed Dec 26, 2024
1 parent 0bd9701 commit e775f68
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions synapse/tests/test_lib_cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -1433,6 +1433,11 @@ def diffdev(dirn):
with mock.patch('os.stat', diffdev):
await self.asyncraises(s_exc.LowSpace, proxy.runBackup())

user = await core.auth.getUserByName('root')
with self.raises(s_exc.SynErr) as cm:
await core.iterNewBackupArchive(user)
self.isin('This API must be called via a CellApi', cm.exception.get('mesg'))

async def err(*args, **kwargs):
raise RuntimeError('boom')

Expand Down

0 comments on commit e775f68

Please sign in to comment.