Skip to content

Commit

Permalink
pytest: add additional test for hide error severity
Browse files Browse the repository at this point in the history
Signed-off-by: Edmund Berenson <[email protected]>
  • Loading branch information
Edmund Berenson authored and priv-kweihmann committed Jun 4, 2024
1 parent a9e762d commit 72ab9a5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/test_user_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,25 @@ def test_hide_warning(self, input_):
issues = [x[1] for x in run(_args)]
assert (not any([x for x in issues if ':warning:' in x]))

@pytest.mark.parametrize('input_',
[
{
'oelint adv-test.bb':
'''
VAR = "1"
FILES = "foo"
''',
},
],
)
def test_hide_error(self, input_):
# local imports only
from oelint_adv.__main__ import run

_args = self._create_args(input_, extraopts=['--hide', 'error'])
issues = [x[1] for x in run(_args)]
assert (not any([x for x in issues if ':error:' in x]))

@pytest.mark.parametrize('input_',
[
{
Expand Down

0 comments on commit 72ab9a5

Please sign in to comment.