Skip to content

Commit 0170fe9

Browse files
committed
Slimline datastore_simulator example.
1 parent 9b67640 commit 0170fe9

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

doc/source/_static/examples.tgz

979 Bytes
Binary file not shown.

doc/source/_static/examples.zip

1.47 KB
Binary file not shown.

doc/source/examples.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ Source: :github:`examples/simulator.py`
168168
:noindex:
169169

170170

171-
Simulator datastore example
172-
^^^^^^^^^^^^^^^^^^^^^^^^^^^
173-
Source: :github:`examples/datastore_simulator.py`
171+
Simulator datastore (shared storage) example
172+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
173+
Source: :github:`examples/datastore_simulator_share.py`
174174

175-
.. automodule:: examples.datastore_simulator
175+
.. automodule:: examples.datastore_simulator_share
176176
:undoc-members:
177177
:noindex:
178178

File renamed without changes.

test/sub_examples/test_examples.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from examples.client_calls import template_call
1818
from examples.client_custom_msg import main as main_custom_client
1919
from examples.client_payload import main as main_payload_calls
20-
from examples.datastore_simulator import main as main_datastore_simulator
20+
from examples.datastore_simulator_share import main as main_datastore_simulator_share
2121
from examples.message_generator import generate_messages
2222
from examples.message_parser import main as main_parse_messages
2323
from examples.server_async import setup_server
@@ -82,10 +82,10 @@ async def test_updating_server(self, use_port, use_host):
8282
task.cancel()
8383
await task
8484

85-
async def test_datastore_simulator(self, use_port, use_host):
85+
async def test_datastore_simulator_share(self, use_port, use_host):
8686
"""Test server simulator."""
8787
cmdargs = ["--port", str(use_port), "--host", use_host]
88-
task = asyncio.create_task(main_datastore_simulator(cmdline=cmdargs))
88+
task = asyncio.create_task(main_datastore_simulator_share(cmdline=cmdargs))
8989
task.set_name("run main_datastore_simulator")
9090
await asyncio.sleep(0.1)
9191
testclient = setup_async_client(cmdline=cmdargs)

0 commit comments

Comments
 (0)