Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

from compatibility_lib import configs

SERVER_URL = 'http://0.0.0.0:8888'
SERVER_URL = 'http://104.197.8.72'

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def test_check(self):

packages = 'test_pkg'
python_version = 3
expected_server_url = 'http://104.197.8.72'

data = {
'python-version': python_version,
Expand All @@ -47,6 +48,8 @@ def test_check(self):

mock_requests.get.assert_called_with(
compatibility_checker.SERVER_URL, params=data)
self.assertEqual(compatibility_checker.SERVER_URL,
expected_server_url)

def _mock_retrying_check(self, *args):
packages = args[0][0]
Expand Down
2 changes: 1 addition & 1 deletion system_test/test_badge_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def test_google_compatibility_badge(self):
content = response.content

self.assertEqual(status_code, 200)
self.assertIn(b"CHECK WARNING", content)
self.assertIn(b"CALCULATING", content)

@retry(wait_fixed=RETRY_WAIT_PERIOD,
stop_max_attempt_number=RETRY_MAX_ATTEMPT)
Expand Down