forked from bluesky/tiled
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Drop mention of References in docs. * Remove references.
- Loading branch information
1 parent
2c4aac7
commit 465c66c
Showing
29 changed files
with
77 additions
and
331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from ..adapters.mapping import MapAdapter | ||
from ..client import Context, from_context | ||
from ..server.app import build_app | ||
from ..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")] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.