Skip to content

Commit b8ae135

Browse files
pytest 8.3.3 (new formula)
1 parent c436b34 commit b8ae135

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

Formula/p/pytest.rb

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
class Pytest < Formula
2+
include Language::Python::Virtualenv
3+
4+
desc "Simple powerful testing with Python"
5+
homepage "https://docs.pytest.org/en/latest/"
6+
url "https://files.pythonhosted.org/packages/8b/6c/62bbd536103af674e227c41a8f3dcd022d591f6eed5facb5a0f31ee33bbc/pytest-8.3.3.tar.gz"
7+
sha256 "70b98107bd648308a7952b06e6ca9a50bc660be218d53c257cc1fc94fda10181"
8+
license "MIT"
9+
10+
depends_on "[email protected]"
11+
12+
resource "iniconfig" do
13+
url "https://files.pythonhosted.org/packages/d7/4b/cbd8e699e64a6f16ca3a8220661b5f83792b3017d0f79807cb8708d33913/iniconfig-2.0.0.tar.gz"
14+
sha256 "2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"
15+
end
16+
17+
resource "packaging" do
18+
url "https://files.pythonhosted.org/packages/51/65/50db4dda066951078f0a96cf12f4b9ada6e4b811516bf0262c0f4f7064d4/packaging-24.1.tar.gz"
19+
sha256 "026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002"
20+
end
21+
22+
resource "pluggy" do
23+
url "https://files.pythonhosted.org/packages/96/2d/02d4312c973c6050a18b314a5ad0b3210edb65a906f868e31c111dede4a6/pluggy-1.5.0.tar.gz"
24+
sha256 "2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1"
25+
end
26+
27+
def install
28+
virtualenv_install_with_resources
29+
end
30+
31+
test do
32+
(testpath/"test_example.py").write <<~EOS
33+
def test_example():
34+
assert 1 + 1 == 2
35+
EOS
36+
system bin/"pytest", "test_example.py"
37+
end
38+
end

0 commit comments

Comments
 (0)