-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests: Add check mocha.run() using fbp-python-example runtime
- Loading branch information
Showing
4 changed files
with
45 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "protocol-examples"] | ||
path = protocol-examples | ||
url = ../protocol-examples.git |
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,27 @@ | ||
name: "Simple example of passing tests" | ||
topic: "core/Repeat" | ||
fixture: | ||
type: 'fbp' | ||
data: | | ||
# @runtime python-example | ||
INPORT=it.IN:IN | ||
INPORT=it.OUT:OUT | ||
it(core/Repeat) OUT -> IN f(core/Repeat) | ||
cases: | ||
- | ||
name: 'sending a boolean' | ||
assertion: 'should repeat the same' | ||
inputs: | ||
in: true | ||
expect: | ||
out: true | ||
- | ||
name: 'sending a numbe' | ||
assertion: 'should repeat the same' | ||
inputs: | ||
in: 1000 | ||
expect: | ||
out: 1000 |
Submodule protocol-examples
added at
e635c9
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,14 @@ | ||
fbpspec = require '..' | ||
|
||
rt = | ||
label: "Example runtime" | ||
description: "Simple Python example FBP runtime" | ||
type: "fbp-python-example" | ||
protocol: "websocket" | ||
address: "ws://localhost:3569" | ||
secret: "py3k" | ||
id: "2ef763ff-1f28-49b8-b58f-5c6a5c23af26" | ||
user: "3f3a8187-0931-4611-8963-239c0dff1939" | ||
command: 'python2 protocol-examples/python/runtime.py' | ||
|
||
fbpspec.mocha.run rt, './examples/simple-passing.yaml', {} |