Commit ad7bee7 1 parent ec9f0f8 commit ad7bee7 Copy full SHA for ad7bee7
File tree 4 files changed +8
-5
lines changed
4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change
1
+ 1.18.8
2
+ ------
3
+ - Fix is_available method.
4
+
1
5
1.18.7
2
6
______
3
7
- Support email file path for sending phishing email.
Original file line number Diff line number Diff line change 1
- __version__ = '1.18.7 '
1
+ __version__ = '1.18.8 '
Original file line number Diff line number Diff line change @@ -222,8 +222,7 @@ def assert_any_on_premise(self):
222
222
def is_available (self ) -> bool :
223
223
response = requests .get (f'{ self .full_url } /is-available' )
224
224
if response .status_code == HTTPStatus .OK :
225
- is_available = response .json ().get ('result' , {}).get ('is_available' )
226
- return is_available
225
+ return response .json ().get ('is_available' )
227
226
return False
228
227
229
228
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ def test_is_intezer_site_available(self):
103
103
mock .add ('GET' ,
104
104
url = f'{ self .full_url } /is-available' ,
105
105
status = HTTPStatus .OK ,
106
- json = {'result' : { ' is_available' : True } })
106
+ json = {'is_available' : True })
107
107
# Act & Assert
108
108
self .assertTrue (api .is_available ())
109
109
@@ -115,7 +115,7 @@ def test_is_intezer_site_available_website_not_available(self):
115
115
mock .add ('GET' ,
116
116
url = f'{ self .full_url } /is-available' ,
117
117
status = HTTPStatus .OK ,
118
- json = {'result' : { ' is_available' : False } })
118
+ json = {'is_available' : False })
119
119
# Act & Assert
120
120
self .assertFalse (api .is_available ())
121
121
You can’t perform that action at this time.
0 commit comments