From bbdadd6a05ec1e9a12c8e3ccebf3554254a48b03 Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Nov 09 2018 04:41:34 +0000 Subject: the specfile methods give a full path now, update the tests Signed-off-by: Brian Stinson --- diff --git a/tests/test_cli.py b/tests/test_cli.py index 318e671..d02896a 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -920,7 +920,7 @@ class TestGimmeSpec(CliTestCase): cli.gimmespec() output = sys.stdout.getvalue().strip() - self.assertEqual('docpkg.spec', output) + self.assertEqual(os.path.join(self.cloned_repo_path,'docpkg.spec'), output) class TestClean(CliTestCase): diff --git a/tests/test_commands.py b/tests/test_commands.py index d7b20cc..9d72844 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -400,7 +400,7 @@ class TestProperties(CommandTestCase): def test_spec(self): cmd = self.make_commands() - self.assertEqual('docpkg.spec', cmd.spec) + self.assertEqual(os.path.join(self.cloned_repo_path,'docpkg.spec'), cmd.spec) def test_no_spec_as_it_is_deadpackage(self): with patch('os.listdir', return_value=['dead.package']):