generated from br3ndonland/template-python
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase test coverage of inboard/__init__.py
71% -> 100%
- Loading branch information
1 parent
e239fe5
commit 2a56650
Showing
2 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,18 @@ | ||
from inboard import __version__ | ||
from inboard import __version__, package_version | ||
|
||
current_version = "0.4.1" | ||
|
||
|
||
def test_package_version() -> None: | ||
"""Test package version calculation.""" | ||
assert package_version() == current_version | ||
|
||
|
||
def test_package_version_not_found() -> None: | ||
"""Test package version calculation when package is not installed.""" | ||
assert package_version(package="incorrect") == "Package not found." | ||
|
||
|
||
def test_version() -> None: | ||
assert __version__ == "0.4.1" | ||
"""Test package version number.""" | ||
assert __version__ == current_version |