Files
test2/tools/check_blender_release/check_module_numpy.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
680 B
Python
Raw Normal View History

#!/usr/bin/env python3
# SPDX-FileCopyrightText: 2023 Blender Authors
#
# SPDX-License-Identifier: GPL-2.0-or-later
__all__ = (
"main",
)
import unittest
2025-01-02 19:15:42 +11:00
from check_utils import (
ScriptUnitTesting,
sliceCommandLineArguments,
)
2025-01-02 19:15:42 +11:00
class UnitTesting(ScriptUnitTesting):
def test_numpyImports(self):
self.checkScript("numpy_import")
def test_numpyBasicOperation(self):
self.checkScript("numpy_basic_operation")
def main():
# Slice command line arguments by '--'
unittest_args, _parser_args = sliceCommandLineArguments()
# Construct and run unit tests.
unittest.main(argv=unittest_args)
if __name__ == "__main__":
main()