Skip to content

Commit 7ce02fc

Browse files
committed
Adding Admin test for README.md
1 parent c76a5d0 commit 7ce02fc

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/integration/test_admin.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# -*- coding: utf-8 -*-
2+
3+
import os
4+
import unittest
5+
from intercom import Intercom
6+
from intercom.admin import Admin
7+
8+
Intercom.app_id = os.environ.get('INTERCOM_APP_ID')
9+
Intercom.app_api_key = os.environ.get('INTERCOM_APP_API_KEY')
10+
11+
12+
class AdminTest(unittest.TestCase):
13+
14+
def test(self):
15+
# Iterate over all admins
16+
for admin in Admin.all():
17+
self.assertIsNotNone(admin.id)
18+
self.assertIsNotNone(admin.email)

0 commit comments

Comments
 (0)