(alpine_image: str)
| 51 | |
| 52 | |
| 53 | async def test_input_arg(alpine_image: str): |
| 54 | dockerfile = f"""\ |
| 55 | FROM {alpine_image} |
| 56 | ARG SPAM=spam |
| 57 | ENV SPAM=$SPAM |
| 58 | CMD printenv |
| 59 | """ |
| 60 | out = await ( |
| 61 | dag.directory() |
| 62 | .with_new_file("Dockerfile", dockerfile) |
| 63 | .docker_build( |
| 64 | build_args=[dagger.BuildArg("SPAM", "egg")], |
| 65 | ) |
| 66 | .with_exec([]) |
| 67 | .stdout() |
| 68 | ) |
| 69 | assert "SPAM=egg" in out |
| 70 | |
| 71 | |
| 72 | async def test_optionals_in_input_fields(): |
nothing calls this directly
no test coverage detected