fix(buildtrigger): fixed error from github api

there was a 500 being thrown every time there was a slash at the end of a directory while adding in a new trigger this stops that 500 from coming
This commit is contained in:
Charlton Austin 2017-03-10 12:26:57 -05:00
parent 9ed022fd18
commit d6e45e3321
5 changed files with 6 additions and 6 deletions

View file

@ -12,4 +12,4 @@ from buildtrigger.basehandler import BuildTriggerHandler
(u"bad file name", False),
])
def test_path_is_dockerfile(input, output):
assert BuildTriggerHandler.path_is_dockerfile(input) == output
assert BuildTriggerHandler.filename_is_dockerfile(input) == output