You've already forked oncall
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:
committed by
Qingping Hou
parent
8ff0268447
commit
a47e07fac5
@@ -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())
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user