diff options
Diffstat (limited to 'tests/unit/collector')
-rw-r--r-- | tests/unit/collector/grep_test.py | 4 | ||||
-rw-r--r-- | tests/unit/collector/transformer/__init__.py | 0 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/collector/grep_test.py b/tests/unit/collector/grep_test.py index e5d5f8c6..2d4079af 100644 --- a/tests/unit/collector/grep_test.py +++ b/tests/unit/collector/grep_test.py @@ -21,7 +21,9 @@ def logfile(data_root): @pytest.mark.parametrize("regex,expected", [ ('not exist', []), ('Lorem (\S+)', [{'groups': ('ipsum',), 'groupdict': {}}]), - ('nisi ut (?P<name>\S+)', [{'groups': ('aliquip',), 'groupdict': {'name': 'aliquip'}}]) + ('nisi ut (?P<name>\S+)', [{'groups': ('aliquip',), 'groupdict': {'name': 'aliquip'}}]), + ('Lorem\s(\w+)\s.+\nconsectetur\s(\w+)\s.+\n', + [{'groups': ('ipsum', 'adipiscing',), 'groupdict': {}}]) ]) def test_grep_in_file(logfile, regex, expected): matches = grep_in_file(logfile, regex) diff --git a/tests/unit/collector/transformer/__init__.py b/tests/unit/collector/transformer/__init__.py deleted file mode 100644 index e69de29b..00000000 --- a/tests/unit/collector/transformer/__init__.py +++ /dev/null |