generated from pollen-robotics/python-template
-
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.
- Loading branch information
1 parent
a69a09c
commit 01600a8
Showing
3 changed files
with
21 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
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,16 @@ | ||
import pytest | ||
|
||
from gst_signalling import GstSignallingProducer | ||
|
||
|
||
@pytest.mark.asyncio | ||
async def test_simple_producer(signalling_host: str, signalling_port: int) -> None: | ||
producer = GstSignallingProducer( | ||
host=signalling_host, | ||
port=signalling_port, | ||
name="pytest producer", | ||
) | ||
|
||
await producer.connect() | ||
assert len(producer.peer_id) == 36 | ||
await producer.close() |