test: add happy-path test for assert_archive_contains

This commit is contained in:
Alex Eagle 2023-01-20 14:37:33 -08:00
parent 083ff26ced
commit 9b7250d146
5 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,14 @@
load("//lib:testing.bzl", "assert_archive_contains")
assert_archive_contains(
name = "check_zip",
archive = "bazel_runfiles.whl",
expected = "expected_wheel.txt",
)
assert_archive_contains(
name = "check_tar",
archive = "lib_tests.tar",
expected = "expected_tar.txt",
type = "tar",
)

Binary file not shown.

View File

@ -0,0 +1,3 @@
lib/tests/assert_archive_contains/bazel_runfiles.whl
lib/tests/assert_archive_contains/expected_wheel.txt
lib/tests/assert_archive_contains/BUILD.bazel

View File

@ -0,0 +1,5 @@
runfiles/__init__.py
runfiles/runfiles.py
bazel_runfiles-1.0.2.dist-info/WHEEL
bazel_runfiles-1.0.2.dist-info/METADATA
bazel_runfiles-1.0.2.dist-info/RECORD

Binary file not shown.