Skip to content

Commit 24537e9

Browse files
committed
fixup tests
1 parent 97754ca commit 24537e9

File tree

4 files changed

+5
-411
lines changed

4 files changed

+5
-411
lines changed

tests/pypi/whl_installer/BUILD.bazel

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,6 @@ py_test(
2727
],
2828
)
2929

30-
py_test(
31-
name = "platform_test",
32-
size = "small",
33-
srcs = [
34-
"platform_test.py",
35-
],
36-
data = ["//examples/wheel:minimal_with_py_package"],
37-
deps = [
38-
":lib",
39-
],
40-
)
41-
4230
py_test(
4331
name = "wheel_installer_test",
4432
size = "small",
@@ -50,15 +38,3 @@ py_test(
5038
":lib",
5139
],
5240
)
53-
54-
py_test(
55-
name = "wheel_test",
56-
size = "small",
57-
srcs = [
58-
"wheel_test.py",
59-
],
60-
data = ["//examples/wheel:minimal_with_py_package"],
61-
deps = [
62-
":lib",
63-
],
64-
)

tests/pypi/whl_installer/arguments_test.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import json
1616
import unittest
1717

18-
from python.private.pypi.whl_installer import arguments, wheel
18+
from python.private.pypi.whl_installer import arguments
1919

2020

2121
class ArgumentsTestCase(unittest.TestCase):
@@ -49,18 +49,6 @@ def test_deserialize_structured_args(self) -> None:
4949
self.assertEqual(args["environment"], {"PIP_DO_SOMETHING": "True"})
5050
self.assertEqual(args["extra_pip_args"], [])
5151

52-
def test_platform_aggregation(self) -> None:
53-
parser = arguments.parser()
54-
args = parser.parse_args(
55-
args=[
56-
"--platform=linux_*",
57-
"--platform=osx_*",
58-
"--platform=windows_*",
59-
"--requirement=foo",
60-
]
61-
)
62-
self.assertEqual(set(wheel.Platform.all()), arguments.get_platforms(args))
63-
6452

6553
if __name__ == "__main__":
6654
unittest.main()

tests/pypi/whl_installer/wheel_installer_test.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ def test_wheel_exists(self) -> None:
7171
installation_dir=Path(self.wheel_dir),
7272
extras={},
7373
enable_implicit_namespace_pkgs=False,
74-
platforms=[],
7574
)
7675

7776
want_files = [
@@ -92,11 +91,13 @@ def test_wheel_exists(self) -> None:
9291
metadata_file_content = json.load(metadata_file)
9392

9493
want = dict(
94+
abi="cp311",
9595
version="0.0.1",
9696
name="example-minimal-package",
97-
deps=[],
98-
deps_by_platform={},
9997
entry_points=[],
98+
extras=[],
99+
python_version="3.11.1",
100+
requires_dist=[],
100101
)
101102
self.assertEqual(want, metadata_file_content)
102103

0 commit comments

Comments
 (0)