aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-node/tests
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-node/tests')
-rw-r--r--packages/meshbay-node/tests/test_tmdb_search_bound.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/packages/meshbay-node/tests/test_tmdb_search_bound.py b/packages/meshbay-node/tests/test_tmdb_search_bound.py
index 486a2c2..3153b15 100644
--- a/packages/meshbay-node/tests/test_tmdb_search_bound.py
+++ b/packages/meshbay-node/tests/test_tmdb_search_bound.py
@@ -21,7 +21,7 @@ simply declined to ask is a worse answer than the truth.
"""
import pytest
-from meshbay_node.transport import webrtc_server
+from meshbay_node.transport.webrtc.apps import video_meta
from meshbay_node.transport.webrtc_server import WebRTCPeerSession
GROUP = "g" * 32
@@ -97,8 +97,8 @@ async def test_a_member_at_the_ceiling_does_not_stop_another_one(node, monkeypat
Alice exhausts her own window; Bob, who has typed nothing, must be served
exactly as if she had not been there.
"""
- monkeypatch.setattr(webrtc_server, "_TMDB_SEARCH_PER_MEMBER", 3)
- monkeypatch.setattr(webrtc_server, "_TMDB_SEARCH_NODE", 100)
+ monkeypatch.setattr(video_meta, "_TMDB_SEARCH_PER_MEMBER", 3)
+ monkeypatch.setattr(video_meta, "_TMDB_SEARCH_NODE", 100)
ctx, tmdb = node
alice = _member(ctx, "alice")
@@ -119,8 +119,8 @@ async def test_one_member_cannot_spend_the_whole_node_quota(node, monkeypatch):
because the operator's credential is one credential however many people
hold the search box down.
"""
- monkeypatch.setattr(webrtc_server, "_TMDB_SEARCH_PER_MEMBER", 100)
- monkeypatch.setattr(webrtc_server, "_TMDB_SEARCH_NODE", 2)
+ monkeypatch.setattr(video_meta, "_TMDB_SEARCH_PER_MEMBER", 100)
+ monkeypatch.setattr(video_meta, "_TMDB_SEARCH_NODE", 2)
ctx, tmdb = node
alice, bob = _member(ctx, "alice"), _member(ctx, "bob")
@@ -138,8 +138,8 @@ async def test_a_members_count_survives_their_reconnection(node, monkeypatch):
reconnect wide, and a client that drops its DataChannel between searches has
no ceiling at all.
"""
- monkeypatch.setattr(webrtc_server, "_TMDB_SEARCH_PER_MEMBER", 2)
- monkeypatch.setattr(webrtc_server, "_TMDB_SEARCH_NODE", 100)
+ monkeypatch.setattr(video_meta, "_TMDB_SEARCH_PER_MEMBER", 2)
+ monkeypatch.setattr(video_meta, "_TMDB_SEARCH_NODE", 100)
ctx, tmdb = node
first = _member(ctx, "alice")
@@ -154,7 +154,7 @@ async def test_a_members_count_survives_their_reconnection(node, monkeypatch):
async def test_a_refusal_is_said_out_loud_and_not_drawn_as_no_matches(node, monkeypatch):
- monkeypatch.setattr(webrtc_server, "_TMDB_SEARCH_PER_MEMBER", 0)
+ monkeypatch.setattr(video_meta, "_TMDB_SEARCH_PER_MEMBER", 0)
ctx, _ = node
alice = _member(ctx, "alice")
@@ -172,7 +172,7 @@ async def test_the_windows_do_not_grow_without_bound(node, monkeypatch):
The lists are trimmed on every call, so the thing that bounds a member also
bounds what remembering them costs.
"""
- monkeypatch.setattr(webrtc_server, "_TMDB_SEARCH_WINDOW", 0.0)
+ monkeypatch.setattr(video_meta, "_TMDB_SEARCH_WINDOW", 0.0)
ctx, tmdb = node
alice = _member(ctx, "alice")