Skip to content

Commit 5dda732

Browse files
committed
Use a different file to test remote files as dependencies.
1 parent ff35532 commit 5dda732

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_execute.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,8 @@ def test_download_file(runner, tmp_path):
11491149
from upath import UPath
11501150
11511151
url = UPath(
1152-
"https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data"
1152+
"https://gist.githubusercontent.com/tobiasraabe/64c24426d5398cac4b9d37b85ebfaf"
1153+
"7c/raw/50c61fa9a5aa0b7d3a7582c4c260b43dabfea720/gistfile1.txt"
11531154
)
11541155
11551156
def task_download_file(path: UPath = url) -> Annotated[str, Path("data.csv")]:
@@ -1160,3 +1161,4 @@ def task_download_file(path: UPath = url) -> Annotated[str, Path("data.csv")]:
11601161
result = runner.invoke(cli, [tmp_path.as_posix()])
11611162
assert result.exit_code == ExitCode.OK
11621163
assert "1 Succeeded" in result.output
1164+
assert "Hello, World!" in tmp_path.joinpath("data.csv").read_text()

0 commit comments

Comments
 (0)