From a7eef6825f983f399b7b3606b37495cd87db81cb Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Mon, 8 Apr 2019 22:12:05 -0700 Subject: [PATCH] Remove interactive session examples --- rbackup/hierarchy/repository.py | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/rbackup/hierarchy/repository.py b/rbackup/hierarchy/repository.py index 08f6597..f1d9293 100644 --- a/rbackup/hierarchy/repository.py +++ b/rbackup/hierarchy/repository.py @@ -124,12 +124,6 @@ class Repository(Hierarchy): """Return the directory in this Repository in which snapshots are stored. - Example - ------- - >>> repo = Repository('backup') - >>> repo.snapshot_dir # doctest: +ELLIPSIS - PosixPath('backup/data') - :rtype: path-like object """ return self.path / "data" @@ -137,12 +131,6 @@ class Repository(Hierarchy): def gen_snapshot_path(self, name): """Generate a path for a Snapshot by name. - Example - ------- - >>> repo = Repository('backup') - >>> repo.gen_snapshot_path('new-snapshot') # doctest: +ELLIPSIS - PosixPath('backup/data/new-snapshot') - :param name: name of the Snapshot :type name: str or path-like object :rtype: path-like object @@ -157,16 +145,6 @@ class Repository(Hierarchy): def snapshots(self): """Return a list of snapshots stored in this Repository. - Example - ------- - >>> repo = Repository('backup') - >>> repo.snapshots - [] - >>> repo.create_snapshot() # doctest: +ELLIPSIS - <...Snapshot ... at 0x...> - >>> repo.snapshots # doctest: +ELLIPSIS - [<...Snapshot ... at 0x...>] - :returns: the names of all snapshots in this repository sorted by date :rtype: list of Snapshot objects @@ -177,16 +155,6 @@ class Repository(Hierarchy): def empty(self): """Determine whether or not this Repository is empty. - Example - ------- - >>> repo = Repository('backup') - >>> repo.empty - True - >>> repo.create_snapshot() # doctest: +ELLIPSIS - <...Snapshot ... at 0x...> - >>> repo.empty - False - :rtype: bool """ return self._data["snapshots"] == []