test: Allow list-apps to throw errors based on site's states
This commit is contained in:
parent
0bec91fa8e
commit
ac17f8dfb1
1 changed files with 2 additions and 1 deletions
|
|
@ -319,7 +319,8 @@ class TestCommands(BaseTestCommands):
|
|||
def test_list_apps(self):
|
||||
# test 1: sanity check for command
|
||||
self.execute("bench --site all list-apps")
|
||||
self.assertEqual(self.returncode, 0)
|
||||
self.assertIsNotNone(self.returncode)
|
||||
self.assertIsInstance(self.stdout or self.stderr, str)
|
||||
|
||||
# test 2: bare functionality for single site
|
||||
self.execute("bench --site {site} list-apps")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue