From 1d92fd38cda91f243232cdd02c71378dc7b21d04 Mon Sep 17 00:00:00 2001 From: Jim Madge Date: Fri, 9 Aug 2024 16:13:37 +0100 Subject: [PATCH] Add test for blocked PyPI package --- integration_tests/tests/pypi.bats | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/integration_tests/tests/pypi.bats b/integration_tests/tests/pypi.bats index 1b9283e..9435c5a 100644 --- a/integration_tests/tests/pypi.bats +++ b/integration_tests/tests/pypi.bats @@ -3,3 +3,12 @@ . ./venv/bin/activate pip install numpy } + +@test "Install mkdocs" { + bats_require_minimum_version 1.5.0 + python3 -m venv ./venv + . ./venv/bin/activate + run ! pip install mkdocs + [ "$status" -eq 1 ] + [[ "$output" == *"HTTP error 403"* ]] +}