New Addon

Google BK
This commit is contained in:
2023-04-23 18:17:03 +07:00
parent 1c7fd2b476
commit 702d080a1e
248 changed files with 72745 additions and 0 deletions
@@ -0,0 +1,13 @@
import pytest
from backup.util import Estimator
from backup.config import Config, Setting
from backup.exceptions import LowSpaceError
@pytest.mark.asyncio
async def test_check_space(estimator: Estimator, coord, config: Config):
estimator.refresh()
estimator.checkSpace(coord.backups())
config.override(Setting.LOW_SPACE_THRESHOLD, estimator.getBytesFree() + 1)
with pytest.raises(LowSpaceError):
estimator.checkSpace(coord.backups())