mirror of
https://github.com/blender/blender
synced 2026-11-01 03:16:58 +03:00
Now we actually print the error we got from Blender when a script test failed. We also now have a bit more useful assertion error messages Pull Request: https://projects.blender.org/blender/blender/pulls/149474
34 lines
691 B
Python
34 lines
691 B
Python
#!/usr/bin/env python3
|
|
# SPDX-FileCopyrightText: 2023 Blender Authors
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
__all__ = (
|
|
"main",
|
|
)
|
|
|
|
import unittest
|
|
|
|
from check_utils import (
|
|
ScriptUnitTesting,
|
|
sliceCommandLineArguments,
|
|
)
|
|
|
|
|
|
class UnitTesting(ScriptUnitTesting):
|
|
def test_requestsImports(self):
|
|
self.checkScript("requests_import")
|
|
|
|
def test_requestsBasicHttpAccess(self):
|
|
self.checkScript("requests_basic_access")
|
|
|
|
|
|
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()
|