Run black code formatter

This commit is contained in:
Eric Torres 2022-04-14 14:04:01 -07:00
parent 8d75711e85
commit b4f7478a4b
3 changed files with 5 additions and 5 deletions

View File

@ -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.")

View File

@ -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()

View File

@ -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()