Run black code formatter

This commit is contained in:
Eric Torres 2019-04-12 07:53:23 -07:00
parent d2e52694f5
commit ad651cd804
2 changed files with 4 additions and 9 deletions

View File

@ -8,12 +8,7 @@ from pathlib import Path
from unittest.mock import patch from unittest.mock import patch
from hypothesis import given from hypothesis import given
from hypothesis.strategies import ( from hypothesis.strategies import from_regex, iterables, one_of, text
from_regex,
iterables,
one_of,
text,
)
from rbackup.package_managers.packagemanager import PackageManager from rbackup.package_managers.packagemanager import PackageManager

View File

@ -239,21 +239,21 @@ class TestRepositoryCleanup(unittest.TestCase):
self.mocked_shutil.rmtree.assert_not_called() self.mocked_shutil.rmtree.assert_not_called()
def test_removes_metadata_by_default(self): def test_removes_metadata_by_default(self):
repo = Repository('backup') repo = Repository("backup")
repo.cleanup() repo.cleanup()
self.mocked_path.return_value.unlink.assert_called_once() self.mocked_path.return_value.unlink.assert_called_once()
def test_removes_snapshots(self): def test_removes_snapshots(self):
repo = Repository('backup') repo = Repository("backup")
repo.cleanup(remove_snapshots=True) repo.cleanup(remove_snapshots=True)
self.mocked_shutil.rmtree.assert_called_once() self.mocked_shutil.rmtree.assert_called_once()
def test_removes_repo_dir(self): def test_removes_repo_dir(self):
repo = Repository('backup') repo = Repository("backup")
repo.cleanup(remove_repo_dir=True) repo.cleanup(remove_repo_dir=True)