Skip to content

Commit

Permalink
Tweak tests for new output
Browse files Browse the repository at this point in the history
  • Loading branch information
mosteo committed Jul 1, 2024
1 parent 5712345 commit 8c328a8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion testsuite/tests/get/get-not-found/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

p = run_alr('get', 'does_not_exist', complain_on_error=False)
assert_eq(1, p.status)
assert_match('.*Crate \[does_not_exist\] does not exist in the index\.\n',
assert_match('.*Crate \[does_not_exist\] does not exist in the index\..*\n',
p.out)
assert_eq([], glob('does_not_exist*'))

Expand Down
2 changes: 1 addition & 1 deletion testsuite/tests/get/provides/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# Check the error for a truly unknown crate:

assert_eq("""\
ERROR: Crate [unobtanium] does not exist in the index.
ERROR: Crate [unobtanium] does not exist in the index. Use `alr search unobtanium` for similar names.
""",
run_alr("get", "unobtanium", "--dirname", complain_on_error=False).out)

Expand Down
3 changes: 0 additions & 3 deletions testsuite/tests/index/external-hint/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@
Test the hinting with custom text in external definitions
"""

from glob import glob

from drivers.alr import distro_is_known, run_alr
from drivers.asserts import assert_eq, assert_match

import re
import platform

# 1st test: directly attempting to retrieve an external (this is doable for
# system externals in supported platforms -- never in this test). Depending on
Expand Down

0 comments on commit 8c328a8

Please sign in to comment.