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 76c8677
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions tests/test_user_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -976,3 +976,31 @@ 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_):
with pytest.raises(SystemExit):
self._create_args(input_, extraopts=['--release=dunfell'])

@pytest.mark.parametrize('input_',
[
{
'oelint adv-test.bb':
'''
VAR = "1"
''',
}
],
)
def test_latest_alias(self, input_):
with pytest.raises(SystemExit):
self._create_args(input_, extraopts=['--release=latest'])

0 comments on commit 76c8677

Please sign in to comment.