diff --git a/test/test_api_usage.py b/test/test_api_usage.py index d24d8ba59..435f8beb7 100644 --- a/test/test_api_usage.py +++ b/test/test_api_usage.py @@ -2342,7 +2342,7 @@ class TestBuildTriggers(ApiTestCase): self.assertEquals(True, activate_json['is_active']) # Make sure the trigger has a write token. - trigger = model.get_build_trigger(ADMIN_ACCESS_USER, 'simple', trigger.uuid) + trigger = model.get_build_trigger(trigger.uuid) self.assertNotEquals(None, trigger.write_token) self.assertEquals(True, py_json.loads(trigger.config)['active'])