RemoteRF 2.13.17__tar.gz → 2.13.19__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {remoterf-2.13.17/src/remoterf.egg-info → remoterf-2.13.19}/PKG-INFO +1 -1
- {remoterf-2.13.17 → remoterf-2.13.19}/pyproject.toml +1 -1
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/core/app.py +4 -2
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/bluetooth/bluetooth_remote.py +2 -2
- {remoterf-2.13.17 → remoterf-2.13.19/src/remoterf.egg-info}/PKG-INFO +1 -1
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_device_routes.py +25 -1
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_messages.py +5 -5
- {remoterf-2.13.17 → remoterf-2.13.19}/LICENSE +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/README.md +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/setup.cfg +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/setup.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/_remoterf_alias.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/__init__.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/admin.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/agent_cli.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/agent_docs.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/api.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/common/__init__.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/common/grpc/__init__.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/common/grpc/deployment_capabilities.proto +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/common/grpc/deployment_capabilities_pb2.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/common/grpc/deployment_capabilities_pb2_grpc.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/common/grpc/grpc.proto +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/common/grpc/grpc_pb2.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/common/grpc/grpc_pb2_grpc.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/common/grpc/v2_codec.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/common/tos_notice.txt +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/common/utils/__init__.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/common/utils/ansi_codes.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/common/utils/api_token.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/common/utils/banner.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/common/utils/list_string.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/common/utils/process_arg.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/config/__init__.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/config/cert_fetcher.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/config/config.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/core/__init__.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/core/acc_login.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/core/availability.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/core/banner_note.txt +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/core/direct_path.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/core/dynamic_v2_transport.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/core/grpc_acc.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/core/grpc_client.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/core/messages.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/core/secure_channel.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/core/v2_errors.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/data/agent_guide.md +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/data/mcp_tools.json +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/deployment/__init__.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/deployment/backend.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/deployment/direct.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/deployment/homes.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/deployment/http.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/deployment/lanpass.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/deployment/state.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/__init__.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/_virtual.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/adalm_pluto/__init__.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/adalm_pluto/adalm_pluto_remote.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/adalm_pluto_mimo/__init__.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/adalm_pluto_mimo/adalm_pluto_mimo_remote.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/bluetooth/__init__.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/dynamic_device.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/dynamic_v2.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/gps/__init__.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/gps/gps_remote.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/hackrf/__init__.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/hackrf/hackrf_remote.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/krakensdr/__init__.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/krakensdr/krakensdr_remote.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/rfbeam_kmd7/__init__.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/rfbeam_kmd7/rfbeam_kmd7_remote.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/rtl_sdr/__init__.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/rtl_sdr/rtl_sdr_remote.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/rtlsdr/__init__.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/schema_review.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/sim_sdr/__init__.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/sim_sdr/sim_sdr_remote.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/support/__init__.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/support/krakensdr.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/support/rfbeam_kmd7.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/support/ti_mmwave.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/support/uhd.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/support/uhd_dsp.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/support/uhd_v2.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/support/wifi.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/ti_awr6843/__init__.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/ti_awr6843/ti_awr6843_remote.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/ti_mmwave/__init__.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/ti_mmwave/ti_mmwave_remote.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/usrp/__init__.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/usrp/usrp_remote.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/usrp/usrp_remote.pyi +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/wifi/__init__.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/wifi/wifi_remote.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/integrations.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/mcp_server.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/ops.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/remoterf_cli.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/version.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf.egg-info/SOURCES.txt +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf.egg-info/dependency_links.txt +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf.egg-info/entry_points.txt +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf.egg-info/requires.txt +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf.egg-info/top_level.txt +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_agent_cli.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_agent_docs.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_api.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_banner.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_batch.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_bundled_drivers.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_ca_pin.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_cli_login_fresh.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_config_address.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_deployment_accounts.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_devices_api.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_direct_path_fixed.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_direct_path_global.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_direct_path_partner.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_direct_path_race.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_direct_path_relay.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_dynamic_device_codegen.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_dynamic_v2.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_federated_devices.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_fetch_idl_fallback.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_finish_prompt.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_gate_i_direct_path.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_grpc_client_target.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_homes.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_integration_schema.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_integrations_helper.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_lan_fallback.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_mcp_server.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_native_account_credentials.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_native_devices.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_native_drivers.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_old_import_name.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_ops.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_partner_dynamic_v2.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_pluto_virtual.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_process_arg.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_relay_paging.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_remote_admin.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_remoterf_cli.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_restart_ride_through.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_rx_readahead.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_schema_review.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_ti_mmwave.py +0 -0
- {remoterf-2.13.17 → remoterf-2.13.19}/tests/test_upgrade_rescue.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: remoterf
|
|
3
|
-
Version: 2.13.
|
|
3
|
+
Version: 2.13.19
|
|
4
4
|
Summary: A python API to remotely access signal centric hardware. Client-side only! Courtesy of Wireless Lab @ UCLA & Prof. Ian Roberts.
|
|
5
5
|
Author-email: Ethan Ge <84103791+ethange1@users.noreply.github.com>
|
|
6
6
|
License-Expression: GPL-3.0-or-later
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "remoterf"
|
|
7
|
-
version = "2.13.
|
|
7
|
+
version = "2.13.19"
|
|
8
8
|
description = "A python API to remotely access signal centric hardware. Client-side only! Courtesy of Wireless Lab @ UCLA & Prof. Ian Roberts."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "GPL-3.0-or-later"
|
|
@@ -738,7 +738,9 @@ def _federated_reservation_rows(*, mine_only):
|
|
|
738
738
|
data = account.get_reservations()
|
|
739
739
|
offline = _render_destinations(data["destinations"])
|
|
740
740
|
names = {d["deployment_id"]: d["display_name"] for d in data["destinations"] if d["display_name"] != d["deployment_id"]}
|
|
741
|
-
|
|
741
|
+
# Older labs still send reservations that have already ended.
|
|
742
|
+
now = time.time()
|
|
743
|
+
rows = [r for r in data["reservations"] if (r["mine"] or not mine_only) and r["end_time"] > now]
|
|
742
744
|
# A reservation's display_name is the lab's owner label ("you"/"reserved"),
|
|
743
745
|
# not the device; name devices from getdev instead.
|
|
744
746
|
labels = {}
|
|
@@ -763,7 +765,7 @@ def _reservation_panel(label, items, *, numbered=False, offline=(), mine=()):
|
|
|
763
765
|
_panel(label, [
|
|
764
766
|
((f"{i:>{index_width}}. ", Sty.CYAN) if numbered else ())
|
|
765
767
|
+ (f"{device:<{width}}", Sty.MAGENTA)
|
|
766
|
-
+ ((" (you)", Sty.GREEN) if i < len(mine) and mine[i] else ())
|
|
768
|
+
+ ((" (you)", Sty.GREEN) if i < len(mine) and mine[i] else (" ", Sty.DEFAULT) if any(mine) else ())
|
|
767
769
|
+ (" ", Sty.DEFAULT, _format_reservation_range(start, end), Sty.CYAN)
|
|
768
770
|
for i, (device, start, end) in enumerate(items)
|
|
769
771
|
] + ([(), *_down_rows(offline)] if offline else []))
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
15
15
|
|
|
16
16
|
# Auto-generated from IDL schema — do not edit by hand.
|
|
17
|
-
# device_type: bluetooth driver_version: 0.1.
|
|
17
|
+
# device_type: bluetooth driver_version: 0.1.4 schema_hash: sha256:5b391955d0e98c6cf6c36efcb672866dd9db5b887d40feeb615c4a0922cbe5f9
|
|
18
18
|
|
|
19
19
|
_PREFIX = "Bluetooth"
|
|
20
|
-
_SCHEMA_HASH = "sha256:
|
|
20
|
+
_SCHEMA_HASH = "sha256:5b391955d0e98c6cf6c36efcb672866dd9db5b887d40feeb615c4a0922cbe5f9"
|
|
21
21
|
_CLIENT_MODULES = {}
|
|
22
22
|
_CLIENT_OBJECTS = {}
|
|
23
23
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: remoterf
|
|
3
|
-
Version: 2.13.
|
|
3
|
+
Version: 2.13.19
|
|
4
4
|
Summary: A python API to remotely access signal centric hardware. Client-side only! Courtesy of Wireless Lab @ UCLA & Prof. Ian Roberts.
|
|
5
5
|
Author-email: Ethan Ge <84103791+ethange1@users.noreply.github.com>
|
|
6
6
|
License-Expression: GPL-3.0-or-later
|
|
@@ -972,13 +972,37 @@ def test_a_deployment_is_never_named_by_its_id(monkeypatch):
|
|
|
972
972
|
assert uid[:8] not in _text(lines)
|
|
973
973
|
account = Mock()
|
|
974
974
|
account.get_reservations.return_value = {"destinations": [dest], "reservations": [
|
|
975
|
-
{"device_id": f"{uid}:5", "deployment_id": uid, "mine": True, "start_time": 0, "end_time":
|
|
975
|
+
{"device_id": f"{uid}:5", "deployment_id": uid, "mine": True, "start_time": 0, "end_time": 4102444800}]}
|
|
976
976
|
account.get_devices.return_value = {"destinations": [], "devices": []}
|
|
977
977
|
monkeypatch.setattr(client_app, "account", account)
|
|
978
978
|
rows, offline = client_app._federated_reservation_rows(mine_only=True)
|
|
979
979
|
assert [r["device_label"] for r in rows] == ["unlisted device"] and offline == [None]
|
|
980
980
|
|
|
981
981
|
|
|
982
|
+
def test_ended_federated_reservations_are_dropped_and_you_lines_up(monkeypatch):
|
|
983
|
+
import time
|
|
984
|
+
import remoterf.core.app as client_app
|
|
985
|
+
|
|
986
|
+
lines = _shown(monkeypatch, client_app)
|
|
987
|
+
now = int(time.time())
|
|
988
|
+
account = Mock()
|
|
989
|
+
account.get_reservations.return_value = {"destinations": [], "reservations": [
|
|
990
|
+
{"device_id": "d:1", "deployment_id": DEST, "mine": True, "start_time": now - 7200, "end_time": now - 3600},
|
|
991
|
+
{"device_id": "d:1", "deployment_id": DEST, "mine": True, "start_time": now - 60, "end_time": now + 3600},
|
|
992
|
+
{"device_id": "d:2", "deployment_id": DEST, "mine": False, "start_time": now + 3600, "end_time": now + 7200}]}
|
|
993
|
+
account.get_devices.return_value = {"destinations": [], "devices": [
|
|
994
|
+
{"device_id": "d:1", "display_name": "Robot", "deployment_name": "samueli"},
|
|
995
|
+
{"device_id": "d:2", "display_name": "Robot_GPS", "deployment_name": "samueli"}]}
|
|
996
|
+
monkeypatch.setattr(client_app, "account", account)
|
|
997
|
+
rows, _ = client_app._federated_reservation_rows(mine_only=False)
|
|
998
|
+
assert [(r["device_label"], r["mine"]) for r in rows] == [("Robot@samueli", True), ("Robot_GPS@samueli", False)]
|
|
999
|
+
client_app._federated_reservations(mine_only=False)
|
|
1000
|
+
body = [line for line in lines if "@samueli" in line]
|
|
1001
|
+
assert len(body) == 2 and "(you)" in body[0] and "(you)" not in body[1]
|
|
1002
|
+
starts = {line.index(client_app._format_reservation_range(r["start"], r["end"])) for line, r in zip(body, rows)}
|
|
1003
|
+
assert len(starts) == 1
|
|
1004
|
+
|
|
1005
|
+
|
|
982
1006
|
@pytest.mark.parametrize("answers, expected", [
|
|
983
1007
|
(["y"], True), (["YES"], True), (["n"], False), (["no"], False), ([""], False), (["maybe", "y"], True)])
|
|
984
1008
|
def test_confirm_defaults_to_no_and_takes_y_or_yes(monkeypatch, capsys, answers, expected):
|
|
@@ -173,7 +173,7 @@ def test_the_resdev_picker_lists_offline_deployments_before_the_footer(monkeypat
|
|
|
173
173
|
|
|
174
174
|
|
|
175
175
|
def test_reservation_rows_name_the_device_and_offline_deployments(monkeypatch):
|
|
176
|
-
start = datetime.datetime(
|
|
176
|
+
start = datetime.datetime(2099, 10, 14, 9).timestamp()
|
|
177
177
|
res = lambda device: {"device_id": f"{DEST}:{device}", "deployment_id": DEST, "mine": True,
|
|
178
178
|
"start_time": start, "end_time": start + 1800}
|
|
179
179
|
account = Mock(is_https_home=True)
|
|
@@ -181,8 +181,8 @@ def test_reservation_rows_name_the_device_and_offline_deployments(monkeypatch):
|
|
|
181
181
|
account.get_devices.return_value = {"destinations": [], "devices": [_dev("Bluetooth Dongle")]}
|
|
182
182
|
client_app, lines = _app(monkeypatch, account)
|
|
183
183
|
client_app._federated_reservations(mine_only=True)
|
|
184
|
-
assert _row(lines, "Bluetooth_Dongle@ucla", "
|
|
185
|
-
assert _row(lines, "unlisted", "device@ucla", "
|
|
184
|
+
assert _row(lines, "Bluetooth_Dongle@ucla", "2099-10-14", "from", "09:00", "AM", "to", "09:30", "AM")
|
|
185
|
+
assert _row(lines, "unlisted", "device@ucla", "2099-10-14", "from", "09:00", "AM", "to", "09:30", "AM")
|
|
186
186
|
assert lines[-3].strip("│ ") == "" and lines[-2].strip("│ ") == "@mit (offline)"
|
|
187
187
|
lines.clear()
|
|
188
188
|
account.get_reservations.return_value["reservations"] = []
|
|
@@ -192,7 +192,7 @@ def test_reservation_rows_name_the_device_and_offline_deployments(monkeypatch):
|
|
|
192
192
|
|
|
193
193
|
def test_reservation_rows_name_the_device_not_the_owner_label(monkeypatch):
|
|
194
194
|
# The lab's display_name on a reservation is "you"/"reserved", not a device.
|
|
195
|
-
start = datetime.datetime(
|
|
195
|
+
start = datetime.datetime(2099, 11, 7, 10).timestamp()
|
|
196
196
|
res = lambda device, owner, mine: {"device_id": f"{DEST}:{device}", "deployment_id": DEST, "display_name": owner,
|
|
197
197
|
"mine": mine, "start_time": start, "end_time": start + 3600}
|
|
198
198
|
account = Mock(is_https_home=True)
|
|
@@ -201,7 +201,7 @@ def test_reservation_rows_name_the_device_not_the_owner_label(monkeypatch):
|
|
|
201
201
|
account.get_devices.return_value = {"destinations": [], "devices": [
|
|
202
202
|
_dev("Pluto SDR", handle="Pluto_A"), _dev("Bluetooth Dongle")]}
|
|
203
203
|
client_app, lines = _app(monkeypatch, account)
|
|
204
|
-
when = ("
|
|
204
|
+
when = ("2099-11-07", "from", "10:00", "AM", "to", "11:00", "AM")
|
|
205
205
|
client_app._federated_reservations(mine_only=False)
|
|
206
206
|
assert _row(lines, "Pluto_A@ucla", "(you)", *when)
|
|
207
207
|
assert _row(lines, "Bluetooth_Dongle@ucla", *when)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/common/grpc/deployment_capabilities.proto
RENAMED
|
File without changes
|
{remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/common/grpc/deployment_capabilities_pb2.py
RENAMED
|
File without changes
|
{remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/common/grpc/deployment_capabilities_pb2_grpc.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/adalm_pluto/adalm_pluto_remote.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{remoterf-2.13.17 → remoterf-2.13.19}/src/remoterf/drivers/rfbeam_kmd7/rfbeam_kmd7_remote.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|