Skip to content

Commit

Permalink
✅ Add tests for show portals and show groups
Browse files Browse the repository at this point in the history
  • Loading branch information
user committed Nov 26, 2024
1 parent 84b92d7 commit 83247e1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/test_show.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,3 +448,23 @@ def test_show_config_ap_dev():
)
assert result.exit_code == 0
assert "per-ap-settings" in result.stdout


def test_show_portals():
result = runner.invoke(app, [
"show",
"portals"
]
)
assert result.exit_code == 0 and ("name" in result.stdout or "Empty Response" in result.stdout)


def test_show_guests():
result = runner.invoke(app, [
"show",
"guests",
test_data["portal"]["name"]
]
)
assert result.exit_code == 0 and ("auto_created" in result.stdout or "Empty Response" in result.stdout)

0 comments on commit 83247e1

Please sign in to comment.