diff --git a/package_control/tests/clients.py b/package_control/tests/clients.py index 46fa6f26..09538876 100644 --- a/package_control/tests/clients.py +++ b/package_control/tests/clients.py @@ -33,7 +33,8 @@ def github_settings(self): 'cache_length': 604800, 'user_agent': USER_AGENT, 'http_basic_auth': { - 'api.github.com': [GH_USER, GH_PASS] + 'api.github.com': [GH_USER, GH_PASS], + 'raw.githubusercontent.com': [GH_USER, GH_PASS], } } diff --git a/package_control/tests/downloaders.py b/package_control/tests/downloaders.py index 2c8f7b33..dc45974a 100644 --- a/package_control/tests/downloaders.py +++ b/package_control/tests/downloaders.py @@ -5,7 +5,7 @@ from ..downloaders.downloader_exception import DownloaderException from ..http_cache import HttpCache -from ._config import USER_AGENT, DEBUG +from ._config import USER_AGENT, DEBUG, GH_USER, GH_PASS class DownloaderTestsMixin: @@ -16,7 +16,10 @@ def downloader(self, cache_length=604800): 'debug': DEBUG, 'cache': HttpCache(cache_length), 'cache_length': cache_length, - 'user_agent': USER_AGENT + 'user_agent': USER_AGENT, + 'http_basic_auth': { + 'raw.githubusercontent.com': [GH_USER, GH_PASS], + } }) return self._downloader diff --git a/package_control/tests/providers.py b/package_control/tests/providers.py index bdc2fa96..b530ac40 100644 --- a/package_control/tests/providers.py +++ b/package_control/tests/providers.py @@ -37,7 +37,8 @@ def github_settings(self): 'cache_length': 604800, 'user_agent': USER_AGENT, 'http_basic_auth': { - 'api.github.com': [GH_USER, GH_PASS] + 'api.github.com': [GH_USER, GH_PASS], + 'raw.githubusercontent.com': [GH_USER, GH_PASS], } } @@ -148,7 +149,8 @@ def github_settings(self): 'cache_length': 604800, 'user_agent': USER_AGENT, 'http_basic_auth': { - 'api.github.com': [GH_USER, GH_PASS] + 'api.github.com': [GH_USER, GH_PASS], + 'raw.githubusercontent.com': [GH_USER, GH_PASS], } } @@ -548,8 +550,9 @@ def settings(self): 'cache': HttpCache(604800), 'http_basic_auth': { 'api.github.com': [GH_USER, GH_PASS], + 'raw.githubusercontent.com': [GH_USER, GH_PASS], 'gitlab.com': [GL_USER, GL_PASS], - 'api.bitbucket.org': [BB_USER, BB_PASS] + 'api.bitbucket.org': [BB_USER, BB_PASS], } } @@ -1357,7 +1360,10 @@ def settings(self): 'debug': DEBUG, 'cache': HttpCache(604800), 'cache_length': 604800, - 'user_agent': USER_AGENT + 'user_agent': USER_AGENT, + 'http_basic_auth': { + 'raw.githubusercontent.com': [GH_USER, GH_PASS], + } } def test_get_name_map_12(self):