-
Notifications
You must be signed in to change notification settings - Fork 181
/
Copy pathPython310AsyncTest.php
38 lines (34 loc) · 1.34 KB
/
Python310AsyncTest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
namespace Tests;
/**
* @group asyncPython
* Tests python
*/
class Python310AsyncTest extends Base
{
protected string $sdkName = 'python';
protected string $sdkPlatform = 'server';
protected string $sdkLanguage = 'python';
protected string $version = '0.0.1';
protected string $language = 'python';
protected string $class = 'Appwrite\SDK\Language\Python';
protected array $build = [
'cp tests/languages/python/tests_async.py tests/sdks/python/test.py',
'echo "" > tests/sdks/python/__init__.py',
'docker run --rm -v $(pwd):/app -w /app --env PIP_TARGET=tests/sdks/python/vendor python:3.10 pip install -r tests/sdks/python/requirements.txt --upgrade',
];
protected string $command =
'docker run --rm -v $(pwd):/app -w /app --env PIP_TARGET=tests/sdks/python/vendor --env PYTHONPATH=tests/sdks/python/vendor python:3.10-alpine python tests/sdks/python/test.py';
protected array $expectedOutput = [
...Base::FOO_RESPONSES,
...Base::BAR_RESPONSES,
...Base::GENERAL_RESPONSES,
...Base::LARGE_FILE_RESPONSES,
...Base::LARGE_FILE_RESPONSES,
...Base::LARGE_FILE_RESPONSES,
...Base::EXCEPTION_RESPONSES,
...Base::QUERY_HELPER_RESPONSES,
...Base::PERMISSION_HELPER_RESPONSES,
...Base::ID_HELPER_RESPONSES
];
}