Skip to content

Commit 91631a7

Browse files
committed
Prepare tests-client-py3
1 parent 34152af commit 91631a7

File tree

13 files changed

+1049
-64
lines changed

13 files changed

+1049
-64
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ example-of-exported/py3/*.egg-info
66
example-of-exported/py3/build
77
wsjcpp-jsonrpc2
88
wsjcpp-jsonrpc20
9-
__pycache__
9+
__pycache__
10+
*.log

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,27 @@ addons:
1414
- g++
1515
- pkg-config
1616

17+
python:
18+
- "3.7"
19+
20+
# Install dependencies
21+
before_install:
22+
- sudo apt-get update -qq
23+
- sudo apt-get install -y g++ make python3-pip
24+
25+
install:
26+
- pip3 install --user websocket-client
27+
1728
# Build steps
1829
script:
1930
- ./build_simple.sh
31+
- ./wsjcpp-jsonrpc20
2032
- cd unit-tests.wsjcpp
2133
- ./build_simple.sh
2234
- ./unit-tests
35+
- cd ../tests-client-py3
36+
- python3 run_tests.py
2337

38+
notifications:
39+
email:
40+

example-of-exported/py3/API.md

Lines changed: 87 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Automatically generated by wsjcpp-jsonrpc20.
44
* Version: v0.0.2
5-
* Date: Thu, 10 Sep 2020 17:14:24 GMT
5+
* Date: Sun, 13 Sep 2020 19:26:47 GMT
66

77
Example connect/disconnect:
88
```
@@ -13,12 +13,93 @@ client = SomeClient('ws://host:1234')
1313
client.close()
1414
```
1515

16+
<details>
17+
<summary>auth_login</summary>
18+
19+
## auth_login
20+
21+
Auth by login and password
22+
23+
Access: unauthorized - **yes**, user - **no**, tester - **no**, admin - **no**
24+
25+
#### Input params
26+
27+
* login - string, required; User Login
28+
* password - string, required; User Password
29+
* client_app_name - string, optional; Client app name
30+
* client_app_version - string, optional; Client app version
31+
32+
33+
#### example call method
34+
35+
```
36+
response = client.auth_login(
37+
login="",
38+
password="",
39+
client_app_name="",
40+
client_app_version=""
41+
)
42+
```
43+
44+
</details>
45+
46+
<details>
47+
<summary>auth_logoff</summary>
48+
49+
## auth_logoff
50+
51+
Logoff
52+
53+
Access: unauthorized - **no**, user - **yes**, tester - **yes**, admin - **yes**
54+
55+
#### Input params
56+
57+
58+
59+
#### example call method
60+
61+
```
62+
response = client.auth_logoff(
63+
64+
)
65+
```
66+
67+
</details>
68+
69+
<details>
70+
<summary>auth_token</summary>
71+
72+
## auth_token
73+
74+
Auth by token
75+
76+
Access: unauthorized - **yes**, user - **no**, tester - **no**, admin - **no**
77+
78+
#### Input params
79+
80+
* token - string, required; Token
81+
* client_app_name - string, optional; Client app name
82+
* client_app_version - string, optional; Client app version
83+
84+
85+
#### example call method
86+
87+
```
88+
response = client.auth_token(
89+
token="",
90+
client_app_name="",
91+
client_app_version=""
92+
)
93+
```
94+
95+
</details>
96+
1697
<details>
1798
<summary>game_create</summary>
1899

19100
## game_create
20101

21-
TODO description
102+
Some example of description
22103

23104
Access: unauthorized - **no**, user - **yes**, tester - **yes**, admin - **yes**
24105

@@ -30,6 +111,7 @@ Access: unauthorized - **no**, user - **yes**, tester - **yes**, admin - **ye
30111
* age - integer, optional; Name of object
31112
* public - boolean, required; True if object is public
32113
* activated - boolean, optional; If object can handle
114+
* custom - json, optional; Some custom json
33115

34116

35117
#### example call method
@@ -41,7 +123,8 @@ response = client.game_create(
41123
cost=0,
42124
age=0,
43125
public=False,
44-
activated=False
126+
activated=False,
127+
custom={}
45128
)
46129
```
47130

@@ -54,7 +137,7 @@ response = client.game_create(
54137

55138
This method Will be return list of all handlers
56139

57-
Access: unauthorized - **yes**, user - **yes**, tester - **no**, admin - **yes**
140+
Access: unauthorized - **yes**, user - **yes**, tester - **yes**, admin - **yes**
58141

59142
#### Input params
60143

0 commit comments

Comments
 (0)