Run black code formatter
This commit is contained in:
parent
8d75711e85
commit
b4f7478a4b
@ -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.")
|
||||
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user