From 6ac7481d5e32203d191c86d2392f2a5222252b90 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Tue, 7 May 2024 20:55:08 +0900 Subject: [PATCH] Replace extras.safe_hasattr ... because it was already removed[1]. Also extras hasn't been listed in test dependencies. [1] https://github.com/testing-cabal/extras/commit/304c046b05c72c5597f5b0568c08bbd585408973 Change-Id: Ib5589798f8f58e8ac376bc74547da489786787e1 --- os_collect_config/tests/test_collect.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/os_collect_config/tests/test_collect.py b/os_collect_config/tests/test_collect.py index 3120984..c73507f 100644 --- a/os_collect_config/tests/test_collect.py +++ b/os_collect_config/tests/test_collect.py @@ -21,7 +21,6 @@ import sys import tempfile from unittest import mock -import extras import fixtures from oslo_config import cfg import testtools @@ -557,8 +556,8 @@ class TestConf(testtools.TestCase): def test_setup_conf(self): collect.setup_conf() self.assertEqual('/var/lib/os-collect-config', cfg.CONF.cachedir) - self.assertTrue(extras.safe_hasattr(cfg.CONF, 'ec2')) - self.assertTrue(extras.safe_hasattr(cfg.CONF, 'cfn')) + self.assertTrue(hasattr(cfg.CONF, 'ec2')) + self.assertTrue(hasattr(cfg.CONF, 'cfn')) class TestHup(testtools.TestCase):