From 98075f434e2087b25188bc70a19df48b4167f1ec Mon Sep 17 00:00:00 2001 From: Sebastian Molenda Date: Mon, 8 Apr 2024 21:07:05 +0200 Subject: [PATCH] Fixed EE to work with tests --- scripts/run-tests.py | 2 ++ tests/integrational/asyncio/test_where_now.py | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/run-tests.py b/scripts/run-tests.py index 80ff48a0..9b6ee82b 100755 --- a/scripts/run-tests.py +++ b/scripts/run-tests.py @@ -12,6 +12,7 @@ os.chdir(os.path.join(REPO_ROOT)) tcmn = 'py.test tests --cov=pubnub --ignore=tests/manual/' +tcmn_ee = 'PN_ENABLE_EVENT_ENGINE=True pytest tests/integrational/asyncio/' fcmn = 'flake8 --exclude=scripts/,src/,.cache,.git,.idea,.tox,._trial_temp/,venv/ --ignore F811,E402' @@ -20,5 +21,6 @@ def run(command): run(tcmn) +run(tcmn_ee) # moved to separate action # run(fcmn) diff --git a/tests/integrational/asyncio/test_where_now.py b/tests/integrational/asyncio/test_where_now.py index ac50b9ab..c2eecbc5 100644 --- a/tests/integrational/asyncio/test_where_now.py +++ b/tests/integrational/asyncio/test_where_now.py @@ -4,11 +4,9 @@ from pubnub.models.consumer.presence import PNWhereNowResult from pubnub.pubnub_asyncio import AsyncioSubscriptionManager, PubNubAsyncio from tests.helper import pnconf_sub_copy, pnconf_pam_copy -from tests.integrational.vcr_asyncio_sleeper import get_sleeper, VCR599Listener -from tests.integrational.vcr_helper import pn_vcr +from tests.integrational.vcr_asyncio_sleeper import VCR599Listener -# @pytest.mark.skip # @pn_vcr.use_cassette( # 'tests/integrational/fixtures/asyncio/where_now/single_channel.yaml', # filter_query_parameters=['uuid', 'pnsdk'])