Fix build trigger tests

This commit is contained in:
Joseph Schorr 2017-02-28 17:13:00 -05:00
parent b403906bc8
commit c3edc3855a
2 changed files with 3 additions and 1 deletions

View file

@ -11,7 +11,7 @@ from github import (Github, UnknownObjectException, GithubException,
from jsonschema import validate
from app import github_trigger
from app import app, github_trigger
from buildtrigger.triggerutil import (RepositoryReadException, TriggerActivationException,
TriggerDeactivationException, TriggerStartException,
EmptyRepositoryException, ValidationRequestException,

View file

@ -40,6 +40,7 @@ def test_lookup_user(email, expected_response, gitlab_trigger):
# Valid payload:
('''{
"object_kind": "push",
"ref": "refs/heads/master",
"checkout_sha": "aaaaaaa",
"repository": {
@ -57,6 +58,7 @@ def test_lookup_user(email, expected_response, gitlab_trigger):
# Skip message:
('''{
"object_kind": "push",
"ref": "refs/heads/master",
"checkout_sha": "aaaaaaa",
"repository": {