Skip to content

Add support for builtin types for get_value and set_value #72

Add support for builtin types for get_value and set_value

Add support for builtin types for get_value and set_value #72

GitHub Actions / Test Results failed May 15, 2025 in 0s

1 fail, 9 pass in 7s

 10 files  ± 0  10 suites  ±0   7s ⏱️ -1s
 10 tests  -  1   9 ✅ ± 0  0 💤 ±0   1 ❌ ±0 
100 runs  +16  90 ✅ +18  0 💤 ±0  10 ❌ +2 

Results for commit b63ea73. ± Comparison against earlier commit b3e504a.

Annotations

Check warning on line 0 in tests.unit.test_streamlit_panel

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 10 runs failed: test___unopened_panel___get_unset_value___raises_exception (tests.unit.test_streamlit_panel)

test_results/nipanel-ubuntu-latest-py3.10.xml [took 0s]
test_results/nipanel-ubuntu-latest-py3.11.xml [took 0s]
test_results/nipanel-ubuntu-latest-py3.12.xml [took 0s]
test_results/nipanel-ubuntu-latest-py3.13.xml [took 0s]
test_results/nipanel-ubuntu-latest-py3.9.xml [took 0s]
test_results/nipanel-windows-latest-py3.10.xml [took 0s]
test_results/nipanel-windows-latest-py3.11.xml [took 0s]
test_results/nipanel-windows-latest-py3.12.xml [took 0s]
test_results/nipanel-windows-latest-py3.13.xml [took 0s]
test_results/nipanel-windows-latest-py3.9.xml [took 0s]
Raw output
Failed: DID NOT RAISE <class 'grpc.RpcError'>
grpc_channel_for_fake_panel_service = <grpc._channel.Channel object at 0x000001FCD0D99820>

    def test___unopened_panel___get_unset_value___raises_exception(
        grpc_channel_for_fake_panel_service: grpc.Channel,
    ) -> None:
        """Test that get_value() raises an exception for an unset value."""
        channel = grpc_channel_for_fake_panel_service
        panel = StreamlitPanel("my_panel", "path/to/script", grpc_channel=channel)
    
        value_id = "test_id"
        with pytest.raises(grpc.RpcError):
>           panel.get_value(value_id)
E           Failed: DID NOT RAISE <class 'grpc.RpcError'>

tests\unit\test_streamlit_panel.py:70: Failed