test: add another URL test for update_pypi_url
				
					
				
			Signed-off-by: William Woodruff <william@yossarian.net>
This commit is contained in:
		
							parent
							
								
									f8d6dd4b94
								
							
						
					
					
						commit
						ec0361fd9b
					
				@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user