diff options
Diffstat (limited to 'tests/unittests')
-rw-r--r-- | tests/unittests/test_data.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unittests/test_data.py b/tests/unittests/test_data.py index 7fb9c3ab..fb2b55e8 100644 --- a/tests/unittests/test_data.py +++ b/tests/unittests/test_data.py @@ -648,7 +648,9 @@ class TestConsumeUserDataHttp(TestConsumeUserData, helpers.HttprettyTestCase): util.load_file(ci.paths.get_ipath("cloud_config")) @mock.patch('cloudinit.url_helper.time.sleep') - @mock.patch('cloudinit.features.ERROR_ON_USER_DATA_FAILURE', False) + @mock.patch( + "cloudinit.user_data.features.ERROR_ON_USER_DATA_FAILURE", False + ) def test_include_bad_url_no_fail(self, mock_sleep): """Test #include with a bad URL and failure disabled""" bad_url = 'http://bad/forbidden' |