Merge "Fix github driver tests for py3" into feature/zuulv3
This commit is contained in:
commit
48eb2cb50e
|
@ -840,7 +840,7 @@ class FakeGithubConnection(githubconnection.GithubConnection):
|
|||
"""Emulates sending the GitHub webhook event to the connection."""
|
||||
port = self.webapp.server.socket.getsockname()[1]
|
||||
name, data = event
|
||||
payload = json.dumps(data)
|
||||
payload = json.dumps(data).encode('utf8')
|
||||
headers = {'X-Github-Event': name}
|
||||
req = urllib.request.Request(
|
||||
'http://localhost:%s/connection/%s/payload'
|
||||
|
|
|
@ -14,10 +14,10 @@
|
|||
|
||||
from zuul.driver import Driver, ConnectionInterface, TriggerInterface
|
||||
from zuul.driver import SourceInterface
|
||||
import githubconnection
|
||||
import githubtrigger
|
||||
import githubsource
|
||||
import githubreporter
|
||||
from zuul.driver.github import githubconnection
|
||||
from zuul.driver.github import githubtrigger
|
||||
from zuul.driver.github import githubsource
|
||||
from zuul.driver.github import githubreporter
|
||||
|
||||
|
||||
class GithubDriver(Driver, ConnectionInterface, TriggerInterface,
|
||||
|
|
Loading…
Reference in New Issue