File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed
Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change 1111# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
1212# License for the specific language governing permissions and limitations
1313# under the License.
14- import asyncio
15-
1614from pytest import mark
1715from unittest .mock import MagicMock
1816from supertokens_python import InputAppInfo , SupertokensConfig , init
@@ -802,26 +800,3 @@ async def test_cookie_samesite_with_ec2_public_url():
802800 assert SessionRecipe .get_instance ().config .cookie_domain is None
803801 assert SessionRecipe .get_instance ().config .cookie_same_site == "lax"
804802 assert SessionRecipe .get_instance ().config .cookie_secure is False
805-
806-
807- def test_nest_asyncio_import ():
808- from supertokens_python .async_to_sync_wrapper import nest_asyncio_enabled , sync
809- from os import getenv
810-
811- circleci = getenv ("CIRCLECI" , "false" ) == "true"
812-
813- if not circleci :
814- return
815-
816- # Has to be circleci
817- if nest_asyncio_enabled ():
818- # nest-asyncio should be installed
819- sync (asyncio .sleep (0.1 ))
820- else :
821- # nest-asyncio shouldn't be installed and sync() should throw error
822- try :
823- sync (asyncio .sleep (0.1 ))
824- assert False , "Shouldn't come here"
825- except ModuleNotFoundError :
826- # should be missing
827- assert True
You can’t perform that action at this time.
0 commit comments