Пример #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')