예제 #1
0
 def job(self):
     job = model.Job('job')
     job.skip_if_matcher = cm.MatchAll([
         cm.ProjectMatcher('^project$'),
         cm.MatchAllFiles([cm.FileMatcher('^docs/.*$')]),
     ])
     return job
예제 #2
0
 def setUp(self):
     super(TestMatchAllFiles, self).setUp()
     self.matcher = cm.MatchAllFiles([cm.FileMatcher('^docs/.*$')])
예제 #3
0
 def test_str(self):
     matcher = cm.MatchAll([cm.FileMatcher('foo')])
     self.assertEqual(str(matcher), '{MatchAll:{FileMatcher:foo}}')
예제 #4
0
 def setUp(self):
     super(TestFileMatcher, self).setUp()
     self.matcher = cm.FileMatcher('filename')