Skip to content

Commit 2abee34

Browse files
Mike ProsserMike Prosser
authored andcommitted
"file://" is incorrect
1 parent 0859350 commit 2abee34

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/unit/test_python_panel_service_stub.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616
def test___start_panel___gets_response(python_panel_service_stub: PanelServiceStub) -> None:
17-
configuration = StreamlitPanelConfiguration(panel_script_url="file://path/to/panel.py")
17+
configuration = StreamlitPanelConfiguration(panel_script_url="file:///path/to/panel.py")
1818
configuration_any = Any()
1919
configuration_any.Pack(configuration)
2020
request = StartPanelRequest(panel_id="test_panel", panel_configuration=configuration_any)
@@ -26,7 +26,7 @@ def test___start_panel___gets_response(python_panel_service_stub: PanelServiceSt
2626
def test___start_panel___stop_panel___gets_response(
2727
python_panel_service_stub: PanelServiceStub,
2828
) -> None:
29-
configuration = StreamlitPanelConfiguration(panel_script_url="file://path/to/panel.py")
29+
configuration = StreamlitPanelConfiguration(panel_script_url="file:///path/to/panel.py")
3030
configuration_any = Any()
3131
configuration_any.Pack(configuration)
3232
start_request = StartPanelRequest(panel_id="test_panel", panel_configuration=configuration_any)

tests/unit/test_streamlit_panel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ def test___panel___python_interpreter_url_is_in_venv(
515515
) -> None:
516516
StreamlitPanel("my_panel", "path/to/script", grpc_channel=fake_panel_channel)
517517

518-
assert fake_python_panel_service.servicer.python_interpreter_url.startswith("file://")
518+
assert fake_python_panel_service.servicer.python_interpreter_url.startswith("file:///")
519519
assert ".venv" in fake_python_panel_service.servicer.python_interpreter_url
520520

521521

@@ -525,7 +525,7 @@ def test___panel___python_script_url_starts_with_file(
525525
) -> None:
526526
StreamlitPanel("my_panel", "path/to/script", grpc_channel=fake_panel_channel)
527527

528-
assert fake_python_panel_service.servicer.python_script_url.startswith("file://")
528+
assert fake_python_panel_service.servicer.python_script_url.startswith("file:///")
529529

530530

531531
def is_panel_in_memory(panel: StreamlitPanel) -> bool:

0 commit comments

Comments
 (0)