-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
16 additions
and
3 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
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,7 +1,20 @@ | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright (c) 2024 Scipp contributors (https://github.com/scipp) | ||
|
||
"""Tests of package integrity. | ||
Note that addidional imports need to be added for repositories that | ||
contain multiple packages. | ||
""" | ||
|
||
import scippneutron as pkg | ||
|
||
|
||
def test_has_version(): | ||
assert hasattr(pkg, '__version__') | ||
|
||
|
||
# This is for CI package tests. They need to run tests with minimal dependencies, | ||
# that is, without installing pytest. This code does not affect pytest. | ||
if __name__ == '__main__': | ||
test_has_version() |