This repository was archived by the owner on Oct 21, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
compatibility_lib/compatibility_lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222
2323from compatibility_lib import configs
2424
25- SERVER_URL = 'http://0.0.0.0:8888 '
25+ SERVER_URL = 'http://104.197.8.72 '
2626
2727PACKAGE_NOT_IN_WHITELIST = 'Request contains third party github head packages.'
2828
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ def test_check(self):
2828
2929 packages = 'test_pkg'
3030 python_version = 3
31+ expected_server_url = 'http://104.197.8.72'
3132
3233 data = {
3334 'python-version' : python_version ,
@@ -47,6 +48,8 @@ def test_check(self):
4748
4849 mock_requests .get .assert_called_with (
4950 compatibility_checker .SERVER_URL , params = data )
51+ self .assertEqual (compatibility_checker .SERVER_URL ,
52+ expected_server_url )
5053
5154 def _mock_retrying_check (self , * args ):
5255 packages = args [0 ][0 ]
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ def test_google_compatibility_badge(self):
8686 content = response .content
8787
8888 self .assertEqual (status_code , 200 )
89- self .assertIn (b"CHECK WARNING " , content )
89+ self .assertIn (b"CALCULATING " , content )
9090
9191 @retry (wait_fixed = RETRY_WAIT_PERIOD ,
9292 stop_max_attempt_number = RETRY_MAX_ATTEMPT )
You can’t perform that action at this time.
0 commit comments