Buckets:
| from tiled.adapters.mapping import MapAdapter | |
| from tiled.client import Context, from_context | |
| from tiled.server.app import build_app | |
| from tiled.structures.core import Spec | |
| def test_specs(): | |
| tree = MapAdapter({}, specs=[Spec("spec_test")]) | |
| with Context.from_app(build_app(tree)) as context: | |
| client = from_context(context) | |
| assert client.specs == [Spec("spec_test")] | |
| def test_specs_give_as_str(): | |
| tree = MapAdapter({}, specs=["spec_test"]) | |
| with Context.from_app(build_app(tree)) as context: | |
| client = from_context(context) | |
| assert client.specs == [Spec("spec_test")] | |
| def test_specs_with_version(): | |
| tree = MapAdapter({}, specs=[Spec("spec_test", version="1.1")]) | |
| with Context.from_app(build_app(tree)) as context: | |
| client = from_context(context) | |
| assert client.specs == [Spec("spec_test", version="1.1")] | |
Xet Storage Details
- Size:
- 862 Bytes
- Xet hash:
- 8e8cf163253aa862ae49240380efe18861c4123e34c1b24ea8be2b093d3b9801
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.