Skip to content

Commit 58d2215

Browse files
committed
remove YAML VCRs - signal
1 parent 2105438 commit 58d2215

File tree

5 files changed

+119
-73
lines changed

5 files changed

+119
-73
lines changed

pubnub/models/consumer/history.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
from pubnub.models.consumer.message_type import PNMessageType
2+
3+
24
class PNHistoryResult(object):
35
def __init__(self, messages, start_timetoken, end_timetoken):
46
self.messages = messages
@@ -65,7 +67,7 @@ def __str__(self):
6567

6668
@classmethod
6769
def from_json(cls, json_input, include_message_actions=False, include_message_type=False, include_space_id=False,
68-
start_timetoken=None, end_timetoken=None):
70+
start_timetoken=None, end_timetoken=None):
6971
channels = {}
7072

7173
for key, entry in json_input['channels'].items():
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"version": 1,
3+
"interactions": [
4+
{
5+
"request": {
6+
"method": "GET",
7+
"uri": "https://ps.pndsn.com/signal/demo/demo/0/ch1/0/null?space-id=sp1",
8+
"body": null,
9+
"headers": {
10+
"User-Agent": [
11+
"PubNub-Python/7.1.0"
12+
],
13+
"Accept-Encoding": [
14+
"gzip, deflate"
15+
],
16+
"Accept": [
17+
"*/*"
18+
],
19+
"Connection": [
20+
"keep-alive"
21+
]
22+
}
23+
},
24+
"response": {
25+
"status": {
26+
"code": 200,
27+
"message": "OK"
28+
},
29+
"headers": {
30+
"Content-Type": [
31+
"text/javascript; charset=\"UTF-8\""
32+
],
33+
"Access-Control-Allow-Origin": [
34+
"*"
35+
],
36+
"Access-Control-Allow-Methods": [
37+
"GET"
38+
],
39+
"Cache-Control": [
40+
"no-cache"
41+
],
42+
"Date": [
43+
"Thu, 16 Feb 2023 20:39:25 GMT"
44+
],
45+
"Connection": [
46+
"keep-alive"
47+
],
48+
"Content-Length": [
49+
"30"
50+
]
51+
},
52+
"body": {
53+
"string": "[1,\"Sent\",\"16765799658866173\"]"
54+
}
55+
}
56+
}
57+
]
58+
}

tests/integrational/fixtures/native_sync/signal/with_space_id.yaml

-36
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"version": 1,
3+
"interactions": [
4+
{
5+
"request": {
6+
"method": "GET",
7+
"uri": "https://ps.pndsn.com/signal/demo/demo/0/ch1/0/null?type=test_signal",
8+
"body": null,
9+
"headers": {
10+
"User-Agent": [
11+
"PubNub-Python/7.1.0"
12+
],
13+
"Accept-Encoding": [
14+
"gzip, deflate"
15+
],
16+
"Accept": [
17+
"*/*"
18+
],
19+
"Connection": [
20+
"keep-alive"
21+
]
22+
}
23+
},
24+
"response": {
25+
"status": {
26+
"code": 200,
27+
"message": "OK"
28+
},
29+
"headers": {
30+
"Content-Type": [
31+
"text/javascript; charset=\"UTF-8\""
32+
],
33+
"Access-Control-Allow-Origin": [
34+
"*"
35+
],
36+
"Access-Control-Allow-Methods": [
37+
"GET"
38+
],
39+
"Cache-Control": [
40+
"no-cache"
41+
],
42+
"Date": [
43+
"Thu, 16 Feb 2023 20:39:25 GMT"
44+
],
45+
"Connection": [
46+
"keep-alive"
47+
],
48+
"Content-Length": [
49+
"30"
50+
]
51+
},
52+
"body": {
53+
"string": "[1,\"Sent\",\"16765799657338103\"]"
54+
}
55+
}
56+
}
57+
]
58+
}

tests/integrational/fixtures/native_sync/signal/with_user_message_type.yaml

-36
This file was deleted.

0 commit comments

Comments
 (0)