Skip to content

Commit

Permalink
tests: add missing coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Konrad Weihmann <[email protected]>
  • Loading branch information
priv-kweihmann committed Oct 13, 2024
1 parent 52f77f5 commit cd25f24
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions tests/test_user_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -976,3 +976,33 @@ def test_release_no_author(self, input_):
def test_release_invalid(self, input_):
with pytest.raises(SystemExit):
self._create_args(input_, extraopts=['--release=doesnotexist'])

@pytest.mark.parametrize('input_',
[
{
'oelint adv-test.bb':
'''
VAR = "1"
''',
}
],
)
def test_no_known_variable_file(self, input_):
from oelint_adv.__main__ import run

run(self._create_args(input_, extraopts=['--release=dunfell']))

@pytest.mark.parametrize('input_',
[
{
'oelint adv-test.bb':
'''
VAR = "1"
''',
}
],
)
def test_latest_alias(self, input_):
from oelint_adv.__main__ import run

run(self._create_args(input_, extraopts=['--release=latest']))

0 comments on commit cd25f24

Please sign in to comment.