Allowlists contain expected hosts.
| 188 | |
| 189 | |
| 190 | class TestAllowlistConfiguration: |
| 191 | """Allowlists contain expected hosts.""" |
| 192 | |
| 193 | def test_git_hosts_include_major_forges(self) -> None: |
| 194 | assert "github.com" in ALLOWED_GIT_HOSTS |
| 195 | assert "gitlab.com" in ALLOWED_GIT_HOSTS |
| 196 | assert "bitbucket.org" in ALLOWED_GIT_HOSTS |
| 197 | |
| 198 | def test_download_hosts_include_raw_github(self) -> None: |
| 199 | assert "raw.githubusercontent.com" in ALLOWED_DOWNLOAD_HOSTS |
| 200 | |
| 201 | def test_download_hosts_include_huggingface(self) -> None: |
| 202 | assert "huggingface.co" in ALLOWED_DOWNLOAD_HOSTS |
nothing calls this directly
no outgoing calls
no test coverage detected