Skip to content

Commit d908914

Browse files
author
Sebastian Molenda
committed
my bad
1 parent 74f30fd commit d908914

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

tests/integrational/native_threads/subscribe/test_subscribe.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class TestPubNubSubscription(unittest.TestCase):
3939
@pn_vcr.use_cassette('tests/integrational/fixtures/native_threads/subscribe/subscribe_unsubscribe.json',
4040
filter_query_parameters=['seqn', 'pnsdk', 'tr', 'tt'], serializer='pn_json',
4141
allow_playback_repeats=True)
42-
def test_subscribe_unsubscribe(self):
42+
def orig_test_subscribe_unsubscribe(self):
4343
pubnub = PubNub(pnconf_env_copy(enable_subscribe=True, daemon=True))
4444
ch = "test-subscribe-sub-unsub"
4545

@@ -68,7 +68,7 @@ def test_subscribe_unsubscribe(self):
6868
finally:
6969
pubnub.stop()
7070

71-
def test_subscribe_pub_unsubscribe(self):
71+
def orig_test_subscribe_pub_unsubscribe(self):
7272
ch = "test-subscribe-pub-unsubscribe"
7373
pubnub = PubNub(pnconf_env_copy(enable_subscribe=True, daemon=True))
7474
subscribe_listener = SubscribeListener()
@@ -104,7 +104,7 @@ def test_subscribe_pub_unsubscribe(self):
104104
finally:
105105
pubnub.stop()
106106

107-
def test_join_leave(self):
107+
def orig_test_join_leave(self):
108108
ch = helper.gen_channel("test-subscribe-join-leave")
109109
pubnub = PubNub(pnconf_env_copy(enable_subscribe=True, daemon=True))
110110
pubnub_listener = PubNub(pnconf_env_copy(enable_subscribe=True, daemon=True))
@@ -153,7 +153,7 @@ def test_join_leave(self):
153153
@pn_vcr.use_cassette('tests/integrational/fixtures/native_threads/subscribe/cg_subscribe_unsubscribe.json',
154154
filter_query_parameters=['seqn', 'pnsdk', 'tr', 'tt'], serializer='pn_json',
155155
allow_playback_repeats=True)
156-
def test_cg_subscribe_unsubscribe(self):
156+
def orig_test_cg_subscribe_unsubscribe(self):
157157
ch = "test-subscribe-unsubscribe-channel"
158158
gr = "test-subscribe-unsubscribe-group"
159159

@@ -188,7 +188,7 @@ def test_cg_subscribe_unsubscribe(self):
188188
@pn_vcr.use_cassette('tests/integrational/fixtures/native_threads/subscribe/subscribe_cg_publish_unsubscribe.json',
189189
filter_query_parameters=['seqn', 'pnsdk', 'tr', 'tt'], serializer='pn_json',
190190
allow_playback_repeats=True)
191-
def test_subscribe_cg_publish_unsubscribe(self):
191+
def orig_test_subscribe_cg_publish_unsubscribe(self):
192192
ch = "test-subscribe-unsubscribe-channel"
193193
gr = "test-subscribe-unsubscribe-group"
194194
message = "hey"
@@ -225,7 +225,7 @@ def test_subscribe_cg_publish_unsubscribe(self):
225225

226226
pubnub.stop()
227227

228-
def test_subscribe_cg_join_leave(self):
228+
def orig_test_subscribe_cg_join_leave(self):
229229
ch = helper.gen_channel("test-subscribe-unsubscribe-channel")
230230
gr = helper.gen_channel("test-subscribe-unsubscribe-group")
231231
pubnub = PubNub(pnconf_env_copy(enable_subscribe=True, daemon=True))
@@ -282,7 +282,7 @@ def test_subscribe_cg_join_leave(self):
282282
pubnub.stop()
283283
pubnub_listener.stop()
284284

285-
def test_subscribe_pub_unencrypted_unsubscribe(self):
285+
def orig_test_subscribe_pub_unencrypted_unsubscribe(self):
286286
ch = helper.gen_channel("test-subscribe-pub-unencrypted-unsubscribe")
287287

288288
pubnub_plain = PubNub(pnconf_env_copy(enable_subscribe=True, daemon=True))
@@ -332,7 +332,7 @@ def test_subscribe_pub_unencrypted_unsubscribe(self):
332332
finally:
333333
pubnub.stop()
334334

335-
def test_subscribe_retry_policy_none(self):
335+
def orig_test_subscribe_retry_policy_none(self):
336336
ch = "test-subscribe-retry-policy-none"
337337
pubnub = PubNub(pnconf_env_copy(enable_subscribe=True, daemon=True, origin='127.0.0.1',
338338
reconnect_policy=PNReconnectionPolicy.NONE))
@@ -348,7 +348,7 @@ def test_subscribe_retry_policy_none(self):
348348
except PubNubException as e:
349349
self.fail(e)
350350

351-
def test_subscribe_retry_policy_linear(self):
351+
def orig_test_subscribe_retry_policy_linear(self):
352352
# we don't test the actual delay calculation here, just everything around it
353353
def mock_calculate(*args, **kwargs):
354354
return 0.2
@@ -371,7 +371,7 @@ def mock_calculate(*args, **kwargs):
371371

372372
assert calculate_mock.call_count == LinearDelay.MAX_RETRIES + 1
373373

374-
def test_subscribe_retry_policy_exponential(self):
374+
def orig_test_subscribe_retry_policy_exponential(self):
375375
# we don't test the actual delay calculation here, just everything around it
376376
def mock_calculate(*args, **kwargs):
377377
return 0.2
@@ -394,7 +394,7 @@ def mock_calculate(*args, **kwargs):
394394

395395
assert calculate_mock.call_count == ExponentialDelay.MAX_RETRIES + 1
396396

397-
def test_subscribe_retry_policy_linear_with_max_retries(self):
397+
def orig_test_subscribe_retry_policy_linear_with_max_retries(self):
398398
# we don't test the actual delay calculation here, just everything around it
399399
def mock_calculate(*args, **kwargs):
400400
return 0.2
@@ -418,7 +418,7 @@ def mock_calculate(*args, **kwargs):
418418

419419
assert calculate_mock.call_count == 3
420420

421-
def test_subscribe_retry_policy_exponential_with_max_retries(self):
421+
def orig_test_subscribe_retry_policy_exponential_with_max_retries(self):
422422
# we don't test the actual delay calculation here, just everything around it
423423
def mock_calculate(*args, **kwargs):
424424
return 0.2
@@ -442,7 +442,7 @@ def mock_calculate(*args, **kwargs):
442442

443443
assert calculate_mock.call_count == 3
444444

445-
def test_subscribe_retry_policy_linear_with_custom_interval(self):
445+
def orig_test_subscribe_retry_policy_linear_with_custom_interval(self):
446446
# we don't test the actual delay calculation here, just everything around it
447447
def mock_calculate(*args, **kwargs):
448448
return 0.2

0 commit comments

Comments
 (0)