Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:tulip
salt
re-adding-function-to-test-for-root.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File re-adding-function-to-test-for-root.patch of Package salt
From 4a63d9226a426f4734ff6906b33da36671c4e4e4 Mon Sep 17 00:00:00 2001 From: Jochen Breuer <jbreuer@suse.de> Date: Fri, 20 Mar 2020 13:58:54 +0100 Subject: [PATCH] Re-adding function to test for root --- tests/unit/modules/test_rpm_lowpkg.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/unit/modules/test_rpm_lowpkg.py b/tests/unit/modules/test_rpm_lowpkg.py index b41e8daf17..ec9ecd40cb 100644 --- a/tests/unit/modules/test_rpm_lowpkg.py +++ b/tests/unit/modules/test_rpm_lowpkg.py @@ -14,6 +14,11 @@ def _called_with_root(mock): return cmd.startswith("rpm --root /") +def _called_with_root(mock): + cmd = ' '.join(mock.call_args[0][0]) + return cmd.startswith('rpm --root /') + + class RpmTestCase(TestCase, LoaderModuleMockMixin): """ Test cases for salt.modules.rpm -- 2.29.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor