Files
galaxy/test
Nicola Soranzo a23cff23b2 Check GitHub API rate limit in `get_alternative_versions`, skip test if hit
Fix the following mulled unit test random failure:

```
    @external_dependency_management
    def test_get_alternative_versions():
>       versions = get_alternative_versions("recipes/bioblend", "meta.yaml")

test/unit/tool_util/mulled/test_get_tests.py:79:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
lib/galaxy/tool_util/deps/mulled/get_tests.py:178: in get_alternative_versions
    r.raise_for_status()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <Response [403]>

                f"{self.status_code} Server Error: {reason} for url: {self.url}"
            )

        if http_error_msg:
>           raise HTTPError(http_error_msg, response=self)
E           requests.exceptions.HTTPError: 403 Client Error: rate limit exceeded for url: https://api.github.com/repos/bioconda/bioconda-recipes/contents/recipes/bioblend

.tox/mulled/lib/python3.7/site-packages/requests/models.py:1021: HTTPError
------------------------------ Captured log call -------------------------------
DEBUG    urllib3.connectionpool:connectionpool.py:1007 Starting new HTTPS connection (1): api.github.com:443
DEBUG    urllib3.connectionpool:connectionpool.py:465 https://api.github.com:443 "GET /repos/bioconda/bioconda-recipes/contents/recipes/bioblend HTTP/1.1" 403 277
```
2023-01-04 10:48:34 +00:00
..
2022-12-14 11:03:34 +01:00
2022-02-03 07:42:20 -05:00
2020-10-07 11:52:13 +01:00