def test_client_database_status(localhost, auth_token): client = PGDBClient(localhost, token=auth_token) statuses = client.database_status() print(statuses) for s in statuses: if s['name'] == 'test_database': assert s['status'] == 'Stopped' status = client.database_status('test_database') assert status['status'] == 'Stopped'
def test_client_database_status(localhost): client = PGDBClient(localhost) statuses = client.database_status() assert statuses['test_database'] == 'Stopped' status = client.database_status('test_database') assert status == 'Stopped'