Fix a test to use the new calling convention for get_build_trigger.

This commit is contained in:
Jake Moshenko 2014-11-19 15:43:28 -05:00
parent e863b96166
commit aa62395777

View file

@ -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'])