test: Allow list-apps to throw errors based on site's states

This commit is contained in:
Gavin D'souza 2022-02-10 14:56:35 +05:30
parent 0bec91fa8e
commit ac17f8dfb1

View file

@ -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")