From e634628085d637fdf7f223a794a4e9cb3684adfb Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Thu, 5 Aug 2021 09:53:09 +0200 Subject: [PATCH] cephadm: fix unit tests. Fixes AttributeError: 'FakePipeWrapper' object has no attribute 'readable' Signed-off-by: Sebastian Wagner (cherry picked from commit 61cfaec7002caadb3b4e09d672919ed159853311) --- src/cephadm/tests/fixtures.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cephadm/tests/fixtures.py b/src/cephadm/tests/fixtures.py index b8f585c653a6b..348568379bc5c 100644 --- a/src/cephadm/tests/fixtures.py +++ b/src/cephadm/tests/fixtures.py @@ -70,6 +70,7 @@ def cephadm_fs( with mock.patch('os.fchown'), \ mock.patch('os.fchmod'), \ + mock.patch('platform.processor', return_value='x86_64'), \ mock.patch('cephadm.extract_uid_gid', return_value=(uid, gid)): fs.create_dir(cd.DATA_DIR) -- 2.39.5