Fix build trigger tests
This commit is contained in:
parent
b403906bc8
commit
c3edc3855a
2 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
|
@ -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": {
|
||||
|
|
Reference in a new issue