From ec0361fd9bf08f65e0d407b8a1768d1e794a6fe9 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Sun, 4 Jun 2023 00:01:41 -0400 Subject: [PATCH] test: add another URL test for `update_pypi_url` Signed-off-by: William Woodruff --- Library/Homebrew/test/utils/pypi_spec.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/test/utils/pypi_spec.rb b/Library/Homebrew/test/utils/pypi_spec.rb index 8193c15b69..ad0657c8a7 100644 --- a/Library/Homebrew/test/utils/pypi_spec.rb +++ b/Library/Homebrew/test/utils/pypi_spec.rb @@ -176,8 +176,12 @@ describe PyPI do expect(described_class.update_pypi_url(old_package_url, "0.0.0")).to be_nil end - it "returns nil for non-pypi urls" do + it "returns nil for nonexistent urls" do expect(described_class.update_pypi_url("https://brew.sh/foo-1.0.tgz", "1.1")).to be_nil end + + it "returns nil for non-pypi urls" do + expect(described_class.update_pypi_url("https://github.com/pypa/pip-audit/releases/download/v2.5.6/v2.5.6.tar.gz", "1.1")).to be_nil + end end end