Skip to content

Commit

Permalink
Outline imports
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSchiavini committed Feb 20, 2024
1 parent 50ee8e9 commit 72556bb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/integration/jupyter/conftest.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from multiprocessing.shared_memory import SharedMemory
from os import urandom

import pytest

from boa.integrations.jupyter.browser import _generate_token


@pytest.fixture()
def shared_memory_length():
Expand All @@ -13,9 +14,7 @@ def shared_memory_length():

@pytest.fixture()
def token():
from boa.integrations.jupyter.constants import CALLBACK_TOKEN_BYTES, PLUGIN_NAME

return f"{PLUGIN_NAME}_{urandom(CALLBACK_TOKEN_BYTES).hex()}"
return _generate_token()


@pytest.fixture()
Expand Down

0 comments on commit 72556bb

Please sign in to comment.