コード例 #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 input is the specified task UUID.
     """
     self.assertThat(
         filter_by_uuid('cdeb220d-7605-4d5f-8341-1a170222e308')(
             message_task), Equals(True))
コード例 #3
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)
コード例 #4
0
ファイル: test_filter.py プロジェクト: walkinreeds/eliottree
 def test_no_match(self):
     """
     Return ``False`` if the input is not the specified task UUID.
     """
     self.assertThat(
         filter_by_uuid('nope')(message_task),
         Equals(False))
コード例 #5
0
ファイル: test_filter.py プロジェクト: walkinreeds/eliottree
 def test_match(self):
     """
     Return ``True`` if the input is the specified task UUID.
     """
     self.assertThat(
         filter_by_uuid('cdeb220d-7605-4d5f-8341-1a170222e308')(
             message_task),
         Equals(True))
コード例 #6
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)
コード例 #7
0
ファイル: _cli.py プロジェクト: walkinreeds/eliottree
    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)
コード例 #8
0
ファイル: test_filter.py プロジェクト: wisiy/wisiy
 def test_no_match(self):
     """
     Return ``False`` if the input is not the specified task UUID.
     """
     self.assertThat(filter_by_uuid('nope')(message_task), Equals(False))