Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #1282 from benallard/patch-1
Browse files Browse the repository at this point in the history
Add test for GH-1277
  • Loading branch information
Mikhail Sobolev committed Oct 23, 2014
2 parents ae0e33d + 6dd8800 commit 2ee78ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions master/buildbot/test/unit/test_schedulers_forcesched.py
Expand Up @@ -255,6 +255,12 @@ def test_bad_codebases(self):
builderNames=['bar'],
codebases=[]))

# codebases cannot be a dictionnary
self.assertRaisesConfigError("ForceScheduler: 'codebases' should be a list of strings or CodebaseParameter, not <type 'dict'>",
lambda: ForceScheduler(name='foo',
builderNames=['bar'],
codebases={'cb': {'branch': 'trunk'}}))

@defer.inlineCallbacks
def test_good_codebases(self):
sched = self.makeScheduler(codebases=['foo', CodebaseParameter('bar')])
Expand Down

0 comments on commit 2ee78ab

Please sign in to comment.