예제 #1
0
파일: _cli.py 프로젝트: jml/eliottree
    def filter_funcs():
        if args.select:
            for query in args.select:
                yield filter_by_jmespath(query)

        if args.task_uuid:
            yield filter_by_uuid(args.task_uuid)
예제 #2
0
파일: test_filter.py 프로젝트: wisiy/wisiy
 def test_match(self):
     """
     Return ``True`` if the jmespath does match the input.
     """
     self.assertThat(
         filter_by_jmespath('action_type == `app:action`')(action_task),
         Equals(True))
예제 #3
0
파일: test_filter.py 프로젝트: wisiy/wisiy
 def test_no_match(self):
     """
     Return ``False`` if the jmespath does not match the input.
     """
     self.assertThat(
         filter_by_jmespath('action_type == `app:action`')(message_task),
         Equals(False))
예제 #4
0
파일: _cli.py 프로젝트: itamarst/eliottree
    def filter_funcs():
        if select is not None:
            for query in select:
                yield filter_by_jmespath(query)

        if task_uuid is not None:
            yield filter_by_uuid(task_uuid)
예제 #5
0
 def test_match(self):
     """
     Return ``True`` if the jmespath does match the input.
     """
     self.assertThat(
         filter_by_jmespath('action_type == `app:action`')(action_task),
         Equals(True))
예제 #6
0
 def test_no_match(self):
     """
     Return ``False`` if the jmespath does not match the input.
     """
     self.assertThat(
         filter_by_jmespath('action_type == `app:action`')(message_task),
         Equals(False))
예제 #7
0
파일: _cli.py 프로젝트: cegfdb/eliottree
 def filter_funcs():
     if task_uuid is not None:
         yield filter_by_uuid(task_uuid)
     if start:
         yield filter_by_start_date(start)
     if end:
         yield filter_by_end_date(end)
     if select is not None:
         for query in select:
             yield filter_by_jmespath(query)
예제 #8
0
    def filter_funcs():
        if start:
            yield filter_by_start_date(start)
        if end:
            yield filter_by_end_date(end)

        if select is not None:
            for query in select:
                yield filter_by_jmespath(query)

        if task_uuid is not None:
            yield filter_by_uuid(task_uuid)