Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /bluesky_tiled /tests /test_scaled_config_option.py
| """ | |
| This tests the feature that is exercised by the --scalable CLI option. | |
| """ | |
| from pathlib import Path | |
| import pytest | |
| from tiled.config import construct_build_app_kwargs, parse_configs | |
| from tiled.server.app import UnscalableConfig, build_app | |
| here = Path(__file__).parent.absolute() | |
| def test_scalable_config(filename, scalable): | |
| config_path = here / "test_configs" / filename | |
| parsed_config = parse_configs(config_path) | |
| kwargs = construct_build_app_kwargs(parsed_config) | |
| if scalable: | |
| build_app(scalable=True, **kwargs) | |
| build_app(scalable=False, **kwargs) | |
| else: | |
| with pytest.raises(UnscalableConfig): | |
| build_app(scalable=True, **kwargs) | |
| build_app(scalable=False, **kwargs) | |
Xet Storage Details
- Size:
- 1.1 kB
- Xet hash:
- 8836775965d68f69921ab7ba0567e45a5eb681789231445299a0327cc20a3533
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.