Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 6, 2023
1 parent 2372220 commit 696f8e8
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions unit_test/oci_container_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,25 +78,18 @@ def test_debug_info(container_engine):


def test_environment(container_engine):
with modified_os_environ(CIBUILDWHEEL="1", SOURCE_DATE_EPOCH="42"), \
OCIContainer(engine=container_engine, image=DEFAULT_IMAGE) as container:
with modified_os_environ(CIBUILDWHEEL="1", SOURCE_DATE_EPOCH="42"), OCIContainer(
engine=container_engine, image=DEFAULT_IMAGE
) as container:
assert (
container.call(
["sh", "-c", "echo $TEST_VAR"], env={"TEST_VAR": "1"}, capture_output=True
)
== "1\n"
)
assert container.call(["sh", "-c", "echo $CIBUILDWHEEL"], capture_output=True) == "1\n"
assert (
container.call(
["sh", "-c", "echo $CIBUILDWHEEL"], capture_output=True
)
== "1\n"
)
assert (
container.call(
["sh", "-c", "echo $SOURCE_DATE_EPOCH"], capture_output=True
)
== "42\n"
container.call(["sh", "-c", "echo $SOURCE_DATE_EPOCH"], capture_output=True) == "42\n"
)


Expand Down

0 comments on commit 696f8e8

Please sign in to comment.