Merge "Fix unit test run on OS X"

This commit is contained in:
Zuul 2018-10-09 09:17:28 +00:00 committed by Gerrit Code Review
commit a5439a9288
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import platform
import mock
import six
@ -114,6 +115,7 @@ class MyRoot(wsme.WSRoot):
class TestJsonPatchType(base.TestCase):
@mock.patch.object(platform, '_syscmd_uname', lambda *x: '')
def setUp(self):
super(TestJsonPatchType, self).setUp()
self.app = webtest.TestApp(MyRoot(['restjson']).wsgiapp())