Skip to content

Commit 9bcf44e

Browse files
authored
Increase coverage for new helper function (#1141)
## Changes <!-- Summary of your changes that are easy to understand. Add screenshots when necessary --> The original PR got merged but was low on coverage, so adding a quick fix to increase coverage ### Linked issues #1072 ### Functionality - [ ] added relevant user documentation - [ ] added new CLI command - [ ] modified existing command: `databricks labs ucx ...` - [ ] added a new workflow - [ ] modified existing workflow: `...` - [ ] added a new table - [ ] modified existing table: `...` ### Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> - [ ] manually tested - [x] added unit tests - [ ] added integration tests - [ ] verified on staging environment (screenshot attached)
1 parent 0205ff6 commit 9bcf44e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/unit/test_install.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,3 +1567,6 @@ def test_extract_major_minor_versions():
15671567

15681568
assert extract_major_minor(version_string1) == "0.3"
15691569
assert extract_major_minor(version_string2) == "0.17"
1570+
1571+
version_string3 = "should not match"
1572+
assert extract_major_minor(version_string3) is None

0 commit comments

Comments
 (0)