1
0
mirror of https://github.com/linkedin/oncall.git synced 2025-11-29 23:38:17 +02:00

Fix tests

Read db config from config.yaml, fix bugs, fix bad config value
This commit is contained in:
Daniel Wang
2017-05-23 13:31:11 -07:00
committed by Qingping Hou
parent 8ff0268447
commit a47e07fac5
3 changed files with 12 additions and 12 deletions

View File

@@ -58,7 +58,7 @@ def test_api_v0_get_team(team, role, roster, schedule):
assert re.status_code == 200
team = re.json()
assert isinstance(team, dict)
expected_set = {'users', 'admins', 'services', 'rosters', 'name', 'id', 'slack_channel', 'email', 'scheduling_timezone'}
expected_set = {'users', 'admins', 'services', 'rosters', 'name', 'id', 'slack_channel', 'email', 'scheduling_timezone', 'iris_plan'}
assert expected_set == set(team.keys())
# it should also support filter by fields
@@ -66,7 +66,7 @@ def test_api_v0_get_team(team, role, roster, schedule):
assert re.status_code == 200
team = re.json()
assert isinstance(team, dict)
expected_set = {'users', 'admins', 'services', 'name', 'id', 'slack_channel', 'email', 'scheduling_timezone'}
expected_set = {'users', 'admins', 'services', 'name', 'id', 'slack_channel', 'email', 'scheduling_timezone', 'iris_plan'}
assert expected_set == set(team.keys())