Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pulp-glue-deb/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ classifiers = [
"Typing :: Typed",
]
dependencies = [
"pulp-glue>=0.23.2,<0.33",
"pulp-glue>=0.23.2,<0.34",
]

[project.urls]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ classifiers=[
"Typing :: Typed",
]
dependencies = [
"pulp-cli>=0.23.2,<0.33",
"pulp-cli>=0.23.2,<0.34",
"pulp-glue-deb==0.3.0.dev",
]

Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/config.source
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ expect_fail () {
# Reports verbosely on failure
assert () {
if {
test "$@"
[[ "$@" ]]
} 1>log.out 2>log.err
then
echo "SUCCESS [$@]" >&3
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/pulp_deb/test_deb_remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ expect_succ pulp deb remote update --name "${ENTITIES_NAME}" --distribution "bar
expect_succ pulp deb remote show --name "${ENTITIES_NAME}"
assert "$(echo "$OUTPUT" | jq -r .distributions)" == "bar"
expect_fail pulp deb remote update --name "${ENTITIES_NAME}" --distribution ""
assert "${ERROUTPUT}" == 'Error: Must have at least one distribution for remote.'
assert "${ERROUTPUT}" =~ 'Error: Must have at least one distribution for remote.'

# Try some possible modifications of the remote's components:
expect_succ pulp deb remote update --name "${ENTITIES_NAME}" --component "bar"
Expand Down
5 changes: 4 additions & 1 deletion tests/test_help_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ def test_access_help(no_api: None, subtests: SubTests) -> None:
result = runner.invoke(main, args + ["--help"], catch_exceptions=False)

if result.exit_code == 2:
assert "not available in this context" in result.stdout
assert (
"not available in this context" in result.stdout
or "not available in this context" in result.stderr
)
else:
assert result.exit_code == 0
assert result.stdout.startswith("Usage:") or result.stdout.startswith(
Expand Down
Loading