Fix API exception in trigger setup due to invalid Dockerfile path

This commit is contained in:
Joseph Schorr 2017-03-07 18:58:28 -05:00 committed by Evan Cordell
parent 04c9b6568c
commit a15abd3b5c
5 changed files with 10 additions and 4 deletions

View file

@ -119,7 +119,7 @@ def get_mock_github():
return [master, otherbranch]
def get_file_contents_mock(filepath):
if filepath == '/Dockerfile':
if filepath == 'Dockerfile':
m = Mock()
m.content = 'hello world'
return m