blender/tests/python/bl_pyapi_bpy_app.py
Testfiya a1de44dd54 iOS: Bump version to 5.1.2
This commit bumps the `ios` branch from 5.0.0 alpha to 5.1.2 release.

I merged v5.0-release first then v5.1-release. So it was a sequential
merge.

I'm just waiting to the approval of continuing development.

The stuff that are missing (those are so close to implement):
- #145484 iOS: Keyboard Input Support: https://projects.blender.org/blender/blender/pulls/145484
- #145702 iOS: Add clipboard Image: https://projects.blender.org/blender/blender/pulls/145702
- Fix QOS threading
- Expose Downloads
- UIScene Migration

`make deps` needs to run two times. (still hacky....) OSL occurs racing
conditions.

Disclaimer: I used AI for searching in Documentation of Deps. So the
implementation is by hand. **SACRED PINKY FINGER PROMISE**

Pull Request: https://projects.blender.org/blender/blender/pulls/161073
2026-07-07 16:03:12 +02:00

39 lines
940 B
Python

# SPDX-FileCopyrightText: 2026 Blender Authors
#
# SPDX-License-Identifier: GPL-2.0-or-later
# blender -b -P tests/python/bl_pyapi_bpy_app.py -- --verbose
__all__ = (
"main",
)
import os.path
import sys
import unittest
import bpy
class AppCachedirTest(unittest.TestCase):
def test_app_cachedir(self) -> None:
match sys.platform:
case 'darwin':
expect = '$HOME/Library/Caches/Blender/'
case 'win32':
expect = '%USERPROFILE%\\AppData\\Local\\Blender Foundation\\Blender\\Cache\\'
case _: # Linux or other POSIX-ish system.
expect = '$HOME/.cache/blender/'
expect = os.path.expandvars(expect)
self.assertEqual(expect, bpy.app.cachedir)
def main():
import sys
sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [])
unittest.main()
if __name__ == '__main__':
main()