|
| 1 | +<?php |
| 2 | + |
| 3 | +namespace Tests; |
| 4 | + |
| 5 | +class Python313Test extends Base |
| 6 | +{ |
| 7 | + protected string $sdkName = 'python'; |
| 8 | + protected string $sdkPlatform = 'server'; |
| 9 | + protected string $sdkLanguage = 'python'; |
| 10 | + protected string $version = '0.0.1'; |
| 11 | + |
| 12 | + protected string $language = 'python'; |
| 13 | + protected string $class = 'Appwrite\SDK\Language\Python'; |
| 14 | + protected array $build = [ |
| 15 | + 'cp tests/languages/python/tests.py tests/sdks/python/test.py', |
| 16 | + 'echo "" > tests/sdks/python/__init__.py', |
| 17 | + 'docker run --rm -v $(pwd):/app -w /app --env PIP_TARGET=tests/sdks/python/vendor python:3.13-alpine pip install -r tests/sdks/python/requirements.txt --upgrade', |
| 18 | + ]; |
| 19 | + protected string $command = |
| 20 | + 'docker run --network="mockapi" --rm -v $(pwd):/app -w /app --env PIP_TARGET=tests/sdks/python/vendor --env PYTHONPATH=tests/sdks/python/vendor python:3.13-alpine python tests/sdks/python/test.py'; |
| 21 | + |
| 22 | + protected array $expectedOutput = [ |
| 23 | + ...Base::FOO_RESPONSES, |
| 24 | + ...Base::BAR_RESPONSES, |
| 25 | + ...Base::GENERAL_RESPONSES, |
| 26 | + ...Base::UPLOAD_RESPONSES, |
| 27 | + ...Base::ENUM_RESPONSES, |
| 28 | + ...Base::EXCEPTION_RESPONSES, |
| 29 | + ...Base::OAUTH_RESPONSES, |
| 30 | + ...Base::QUERY_HELPER_RESPONSES, |
| 31 | + ...Base::PERMISSION_HELPER_RESPONSES, |
| 32 | + ...Base::ID_HELPER_RESPONSES |
| 33 | + ]; |
| 34 | +} |
0 commit comments