-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathtest_failed.py
More file actions
29 lines (22 loc) · 919 Bytes
/
test_failed.py
File metadata and controls
29 lines (22 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
def test_build_bogus_platform(cli):
cli.run("-ntfoo-bar", "build", "2.7.1")
assert cli.failed
assert "Compiling on platform 'foo' is not yet supported" in cli.logged
def test_failed_build(cli):
cli.run("-tmacos-arm64", "build", "3.12.0")
assert cli.failed
assert "Error while compiling xz:5.8.3: ForbiddenHttpError" in cli.logged
assert "Overall compilation failed:" in cli.logged
def test_invalid(cli):
cli.run("-n", "build", "foo")
assert cli.failed
assert "Invalid python spec" in cli.logged
cli.run("-n", "build", "3.6")
assert cli.failed
assert "Please provide full desired version" in cli.logged
cli.run("-n", "build", "3.6.7", "-mfoo,bar")
assert cli.failed
assert "Unknown modules: foo, bar" in cli.logged
cli.run("-n", "build", "conda:1.2.3")
assert cli.failed
assert "Python family 'conda' is not yet supported" in cli.logged