Fix unit test execution on Fedora 28
[1] enabled OS auto-detection, however when unit tests are run on Fedora 28 (for example, for packaging), tripleo_repos.tests.test_main.TestTripleORepos.test_main fails because _install_priorities is not called, due to auto-detection. [1] - https://review.openstack.org/635475 Change-Id: I938cb43a518c709ebbf5fefc2a91fa8cb0de85d6
This commit is contained in:
parent
0fdb8ebdb4
commit
e6b0badef2
|
@ -22,7 +22,7 @@ from tripleo_repos import main
|
|||
|
||||
|
||||
class TestTripleORepos(testtools.TestCase):
|
||||
@mock.patch('sys.argv', ['tripleo-repos', 'current'])
|
||||
@mock.patch('sys.argv', ['tripleo-repos', 'current', '-d', 'centos7'])
|
||||
@mock.patch('tripleo_repos.main._run_pkg_clean')
|
||||
@mock.patch('tripleo_repos.main._validate_args')
|
||||
@mock.patch('tripleo_repos.main._get_base_path')
|
||||
|
|
Loading…
Reference in New Issue