From 8e52872cced3b2e43aa4a45e313f35f792c2e3ae Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Mon, 30 Oct 2017 21:08:21 +0100 Subject: cli: Do not require full file path for 'create' action --- tests/test_recursiveloader.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tests/test_recursiveloader.py') diff --git a/tests/test_recursiveloader.py b/tests/test_recursiveloader.py index 8f0a830..cc4d3b9 100644 --- a/tests/test_recursiveloader.py +++ b/tests/test_recursiveloader.py @@ -2361,7 +2361,7 @@ class CreateNewManifestTest(TempDirTestCase): def test_cli(self): self.assertEqual( gemato.cli.main(['gemato', 'create', '--hashes=SHA256 SHA512', - self.path]), + self.dir]), 0) m2 = gemato.manifest.ManifestFile() @@ -2453,7 +2453,7 @@ class CreateNewManifestTest(TempDirTestCase): gemato.cli.main(['gemato', 'create', '--hashes=SHA256 SHA512', '--compress-watermark=0', - os.path.join(self.dir, 'Manifest')]), + self.dir]), 0) self.assertFalse(os.path.exists( os.path.join(self.dir, 'Manifest'))) @@ -2465,7 +2465,7 @@ class CreateNewManifestTest(TempDirTestCase): gemato.cli.main(['gemato', 'create', '--hashes=SHA256 SHA512', '--compress-watermark=4096', - os.path.join(self.dir, 'Manifest')]), + self.dir]), 0) self.assertFalse(os.path.exists( os.path.join(self.dir, 'Manifest.gz'))) @@ -2519,7 +2519,8 @@ class CreateNewCompressedManifestTest(TempDirTestCase): def test_cli(self): self.assertEqual( gemato.cli.main(['gemato', 'create', '--hashes=SHA256 SHA512', - self.path]), + '--compress-watermark=0', '--compress-format=gz', + self.dir]), 0) m2 = gemato.manifest.ManifestFile() -- cgit v1.2.3