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 75b7e6d commit 7120819
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 7120819

Please sign in to comment.