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 jsonschema import validate
|
||||||
|
|
||||||
from app import github_trigger
|
from app import app, github_trigger
|
||||||
from buildtrigger.triggerutil import (RepositoryReadException, TriggerActivationException,
|
from buildtrigger.triggerutil import (RepositoryReadException, TriggerActivationException,
|
||||||
TriggerDeactivationException, TriggerStartException,
|
TriggerDeactivationException, TriggerStartException,
|
||||||
EmptyRepositoryException, ValidationRequestException,
|
EmptyRepositoryException, ValidationRequestException,
|
||||||
|
|
|
@ -40,6 +40,7 @@ def test_lookup_user(email, expected_response, gitlab_trigger):
|
||||||
|
|
||||||
# Valid payload:
|
# Valid payload:
|
||||||
('''{
|
('''{
|
||||||
|
"object_kind": "push",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"checkout_sha": "aaaaaaa",
|
"checkout_sha": "aaaaaaa",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -57,6 +58,7 @@ def test_lookup_user(email, expected_response, gitlab_trigger):
|
||||||
|
|
||||||
# Skip message:
|
# Skip message:
|
||||||
('''{
|
('''{
|
||||||
|
"object_kind": "push",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"checkout_sha": "aaaaaaa",
|
"checkout_sha": "aaaaaaa",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
Reference in a new issue