diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-29 04:20:41 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-29 04:20:41 +0000 |
commit | b49f1524e250764592ff132af8fb0d39182620f7 (patch) | |
tree | a2c4da0c1bfc3be79c9b80180d8958804e91a07d /tests/test_module.py | |
parent | Initial commit. (diff) | |
download | python-build-upstream.tar.xz python-build-upstream.zip |
Adding upstream version 0.9.0.upstream/0.9.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | tests/test_module.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test_module.py b/tests/test_module.py new file mode 100644 index 0000000..1d3d1cc --- /dev/null +++ b/tests/test_module.py @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: MIT + +import sys + +import pytest + +import build + + +def test_version(): + assert build.__version__ + + +@pytest.mark.skipif(sys.version_info < (3, 7), reason='Python 3.7+ required for dir support') +def test_dir(): + assert set(dir(build)) == set(build.__all__) |