Run black code formatter
This commit is contained in:
		| @@ -70,7 +70,7 @@ class Hierarchy(os.PathLike): | |||||||
|     def _gen_metadata(self): |     def _gen_metadata(self): | ||||||
|         """Generate metadata for this repository. |         """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.") |         raise NotImplementedError("This method must be called in a child class.") | ||||||
|  |  | ||||||
|   | |||||||
| @@ -162,7 +162,7 @@ class Repository(Hierarchy): | |||||||
|  |  | ||||||
|     def _gen_metadata(self): |     def _gen_metadata(self): | ||||||
|         """Generate metadata for this repository. |         """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(): |         if self.metadata_path.exists(): | ||||||
|             self._snapshot_metadata = self.read_metadata() |             self._snapshot_metadata = self.read_metadata() | ||||||
|   | |||||||
| @@ -160,13 +160,13 @@ class TestRepositoryCreateSnapshotNormalCases(unittest.TestCase): | |||||||
|  |  | ||||||
|     def setUp(self): |     def setUp(self): | ||||||
|         self.patched_path = patch.multiple( |         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( |         self.patched_metadata = patch.multiple( | ||||||
|                 Repository, read_metadata=DEFAULT, write_metadata=DEFAULT |             Repository, read_metadata=DEFAULT, write_metadata=DEFAULT | ||||||
|         ) |         ) | ||||||
|         self.patched_snapshot = patch( |         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() |         self.mocked_path = self.patched_path.start() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user