diff --git a/rbackup/struct/hierarchy.py b/rbackup/struct/hierarchy.py index ce9ce8e..001330d 100644 --- a/rbackup/struct/hierarchy.py +++ b/rbackup/struct/hierarchy.py @@ -70,7 +70,7 @@ class Hierarchy(os.PathLike): def _gen_metadata(self): """Generate metadata for this repository. - After this method is called, the data necessary for this hierarchy has been created. + After this method is called, the data necessary for this hierarchy has been created. """ raise NotImplementedError("This method must be called in a child class.") diff --git a/rbackup/struct/repository.py b/rbackup/struct/repository.py index 21d8d3d..5cf7b39 100644 --- a/rbackup/struct/repository.py +++ b/rbackup/struct/repository.py @@ -162,7 +162,7 @@ class Repository(Hierarchy): def _gen_metadata(self): """Generate metadata for this repository. - After this method is called, the data necessary for this repository has been created. + After this method is called, the data necessary for this repository has been created. """ if self.metadata_path.exists(): self._snapshot_metadata = self.read_metadata() diff --git a/tests/test_repository.py b/tests/test_repository.py index b6b3649..d82c985 100644 --- a/tests/test_repository.py +++ b/tests/test_repository.py @@ -160,13 +160,13 @@ class TestRepositoryCreateSnapshotNormalCases(unittest.TestCase): def setUp(self): self.patched_path = patch.multiple( - Path, exists=DEFAULT, mkdir=DEFAULT, symlink_to=DEFAULT, touch=DEFAULT + Path, exists=DEFAULT, mkdir=DEFAULT, symlink_to=DEFAULT, touch=DEFAULT ) self.patched_metadata = patch.multiple( - Repository, read_metadata=DEFAULT, write_metadata=DEFAULT + Repository, read_metadata=DEFAULT, write_metadata=DEFAULT ) self.patched_snapshot = patch( - f"{TESTING_PACKAGE}.repository.Snapshot", spec_set=Snapshot + f"{TESTING_PACKAGE}.repository.Snapshot", spec_set=Snapshot ) self.mocked_path = self.patched_path.start()