Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1.6 kB · 52 lines
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253diff --git a/tests/async_client_test.py b/tests/async_client_test.pyindex 2a3c817..e24b11b 100644--- a/tests/async_client_test.py+++ b/tests/async_client_test.py@@ -141,7 +141,10 @@ from nio.api import ( ThreadInclusion, ) from nio.client.async_client import connect_wrapper, on_request_chunk_sent-from nio.crypto import OlmDevice, Session, decrypt_attachment+try:+ from nio.crypto import OlmDevice, Session, decrypt_attachment+except ImportError:+ pass from nio.responses import PublicRoom, PublicRoomsResponse BASE_URL_V1 = f"https://example.org{MATRIX_API_PATH_V1}"diff --git a/tests/conftest.py b/tests/conftest.pyindex d9a5f50..2ce4377 100644--- a/tests/conftest.py+++ b/tests/conftest.py@@ -12,8 +12,11 @@ from conftest_async import ( # noqa: F401 ) from nio import Client, ClientConfig, HttpClient-from nio.crypto import Olm, OlmAccount, OlmDevice-from nio.store import SqliteMemoryStore+try:+ from nio.crypto import Olm, OlmAccount, OlmDevice+ from nio.store import SqliteMemoryStore+except ImportError:+ pass ALICE_ID = "@alice:example.org" ALICE_DEVICE_ID = "JLAFKJWSCS"diff --git a/tests/helpers.py b/tests/helpers.pyindex 63445b6..05096d1 100644--- a/tests/helpers.py+++ b/tests/helpers.py@@ -26,8 +26,11 @@ from hyperframe.frame import ( WindowUpdateFrame, ) -from nio.crypto import OlmAccount, OlmDevice-from nio.store import Ed25519Key+try:+ from nio.crypto import OlmAccount, OlmDevice+ from nio.store import Ed25519Key+except ImportError:+ pass SAMPLE_SETTINGS = { SettingsFrame.HEADER_TABLE_SIZE: 4096,