Skip to content

Commit d4db990

Browse files
author
Zoran Simic
committed
Fine-tuned test (added sha checksum example in url)
1 parent 99fa343 commit d4db990

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/sample-config1.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ cpython-configure:
4242
- --enable-shared
4343

4444
# Exercise custom url
45-
bzip2-url: https://my-enterprise/.../assets/bzip2/123
45+
bzip2-url: https://my-enterprise/.../assets/bzip2/123#sha256=123...def
4646
bzip2-version: 1.2.3
4747
bzip2-src-suffix: tar.gz # Forgot leading dot on purpose
4848
bzip2-http-headers:

tests/test_setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ def test_config(cli):
1212
# Exercise custom url in config
1313
cli.run("-ntmacos-arm64", "-c", cli.tests_path("sample-config1.yml"), "build", "3.9.7", "-mbzip2")
1414
assert cli.succeeded
15-
assert "Would download https://my-enterprise/.../assets/bzip2/123" in cli.logged
16-
assert "Would untar build/sources/bzip2-1.2.3.tar.gz -> build/components/bzip2" in cli.logged
15+
assert "Would download https://my-enterprise/.../assets/bzip2/123#sha256=123...def\n" in cli.logged
16+
assert "Would untar build/sources/bzip2-1.2.3.tar.gz -> build/components/bzip2\n" in cli.logged
1717

1818
cli.run("-ntmacos-arm64", "-c", cli.tests_path("sample-config1.yml"), "build", "3.9.7", "-mnone")
1919
assert cli.succeeded

0 commit comments

Comments
 (0)