Skip to content

Commit

Permalink
chore: broaden exception in import hook - one is raised in ci another…
Browse files Browse the repository at this point in the history
… locally
  • Loading branch information
robcxyz committed Dec 17, 2023
1 parent 7f2c50a commit 4836ace
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def test_provider_hook_import_raise_when_calling_hook_from_tackle_file():
@pytest.mark.parametrize(
"input_file,expected_exception", [
('error-not-found-local.yaml', exceptions.UnknownSourceException),
('error-not-found-repo.yaml', exceptions.RepositoryNotFound),
('error-not-found-repo.yaml', (exceptions.RepositoryNotFound, exceptions.GenericGitException)),
]
)
def test_provider_hook_import_raise_unknown_source(input_file, expected_exception):
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/vcs/test_utils_vcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def test_utils_vcs_get_repo(setup_tmp, fixture, latest, version, assertion):
@pytest.mark.parametrize("fixture,copy,version,exception", [
('tackle-fixture-released', False, 'NO_EXIST', exceptions.VersionNotFoundError),
('tackle-fixture-released', True, 'NO_EXIST', exceptions.VersionNotFoundError),
('NO_EXIST', False, None, exceptions.RepositoryNotFound),
('NO_EXIST', False, None, (exceptions.RepositoryNotFound, exceptions.GenericGitException)),
])
def test_utils_vcs_exceptions_new_repo(setup_tmp, fixture, copy, version, exception):
"""Test exceptions where the repo does not exist in providers"""
Expand Down

0 comments on commit 4836ace

Please sign in to comment.