test: add happy-path test for assert_archive_contains
This commit is contained in:
parent
083ff26ced
commit
9b7250d146
|
@ -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.
|
@ -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
|
|
@ -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.
Loading…
Reference in New Issue