test(fix): Test list-apps for site
This commit is contained in:
parent
ac17f8dfb1
commit
643eecb0ac
1 changed files with 2 additions and 4 deletions
|
|
@ -336,14 +336,12 @@ class TestCommands(BaseTestCommands):
|
|||
self.assertSetEqual(list_apps, installed_apps)
|
||||
|
||||
# test 3: parse json format
|
||||
self.execute("bench --site all list-apps --format json")
|
||||
self.execute("bench --site {site} list-apps --format json")
|
||||
self.assertEqual(self.returncode, 0)
|
||||
self.assertIsInstance(json.loads(self.stdout), dict)
|
||||
|
||||
self.execute("bench --site {site} list-apps --format json")
|
||||
self.assertIsInstance(json.loads(self.stdout), dict)
|
||||
|
||||
self.execute("bench --site {site} list-apps -f json")
|
||||
self.assertEqual(self.returncode, 0)
|
||||
self.assertIsInstance(json.loads(self.stdout), dict)
|
||||
|
||||
def test_show_config(self):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue