@@ -64,6 +64,7 @@ def test_list_assets(get_mock):
6464 get_mock .assert_called_with (
6565 url = 'http://localhost:8080/api/public/v1/assets?in(product.id,(CN-631-322-000))' ,
6666 headers = {'Content-Type' : 'application/json' , 'Authorization' : 'ApiKey XXXX:YYYYY' },
67+ timeout = 300 ,
6768 params = None )
6869
6970
@@ -76,7 +77,8 @@ def test_get_asset(get_mock):
7677
7778 get_mock .assert_called_with (
7879 url = 'http://localhost:8080/api/public/v1/assets/AS-9861-7949-8492' ,
79- headers = {'Content-Type' : 'application/json' , 'Authorization' : 'ApiKey XXXX:YYYYY' })
80+ headers = {'Content-Type' : 'application/json' , 'Authorization' : 'ApiKey XXXX:YYYYY' },
81+ timeout = 300 )
8082
8183
8284@patch ('requests.get' , MagicMock (return_value = _get_bad_response ()))
@@ -96,7 +98,8 @@ def test_list_products(get_mock):
9698
9799 get_mock .assert_called_with (
98100 url = 'http://localhost:8080/api/public/v1/products' ,
99- headers = {'Content-Type' : 'application/json' , 'Authorization' : 'ApiKey XXXX:YYYYY' })
101+ headers = {'Content-Type' : 'application/json' , 'Authorization' : 'ApiKey XXXX:YYYYY' },
102+ timeout = 300 )
100103
101104
102105@patch ('requests.get' )
@@ -108,7 +111,8 @@ def test_get_product(get_mock):
108111
109112 get_mock .assert_called_with (
110113 url = 'http://localhost:8080/api/public/v1/products/CN-783-317-575' ,
111- headers = {'Content-Type' : 'application/json' , 'Authorization' : 'ApiKey XXXX:YYYYY' })
114+ headers = {'Content-Type' : 'application/json' , 'Authorization' : 'ApiKey XXXX:YYYYY' },
115+ timeout = 300 )
112116
113117
114118@patch ('requests.get' , MagicMock (return_value = _get_bad_response ()))
@@ -129,6 +133,7 @@ def test_list_tier_configs(get_mock):
129133 get_mock .assert_called_with (
130134 url = 'http://localhost:8080/api/public/v1/tier/configs' ,
131135 headers = {'Content-Type' : 'application/json' , 'Authorization' : 'ApiKey XXXX:YYYYY' },
136+ timeout = 300 ,
132137 params = {'product.id' : 'CN-631-322-000' })
133138
134139
@@ -141,7 +146,8 @@ def test_get_tier_config(get_mock):
141146
142147 get_mock .assert_called_with (
143148 url = 'http://localhost:8080/api/public/v1/tier/configs/TC-000-000-000' ,
144- headers = {'Content-Type' : 'application/json' , 'Authorization' : 'ApiKey XXXX:YYYYY' })
149+ headers = {'Content-Type' : 'application/json' , 'Authorization' : 'ApiKey XXXX:YYYYY' },
150+ timeout = 300 )
145151
146152
147153@patch ('requests.get' , MagicMock (return_value = _get_bad_response ()))
0 commit comments