Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Commit c43402f

Browse files
authored
Fix server url (#179)
1 parent bbe60d3 commit c43402f

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

compatibility_lib/compatibility_lib/compatibility_checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
from compatibility_lib import configs
2424

25-
SERVER_URL = 'http://0.0.0.0:8888'
25+
SERVER_URL = 'http://104.197.8.72'
2626

2727
PACKAGE_NOT_IN_WHITELIST = 'Request contains third party github head packages.'
2828

compatibility_lib/compatibility_lib/test_compatibility_checker.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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]

system_test/test_badge_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)