Skip to content

Commit

Permalink
Change sphinx theme
Browse files Browse the repository at this point in the history
  • Loading branch information
mraspaud committed May 22, 2024
1 parent 97b2f94 commit 7a2633e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = "alabaster"
html_theme = "sphinx_rtd_theme"
html_static_path = ["_static"]
13 changes: 4 additions & 9 deletions posttroll/tests/test_secure_zmq_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@
import os
import shutil
import time
from threading import Thread

import zmq.auth

from posttroll import config
from posttroll.backends.zmq import generate_keys
from posttroll.message import Message
from posttroll.ns import get_pub_address
from posttroll.publisher import Publisher
from posttroll.publisher import Publisher, create_publisher_from_dict_config
from posttroll.subscriber import Subscriber, create_subscriber_from_dict_config
from posttroll.tests.test_nameserver import create_nameserver_instance

Expand Down Expand Up @@ -62,18 +65,15 @@ def test_ipc_pubsub_with_sec(tmp_path):
server_secret_key_file=server_secret_key_file):
subscriber_settings = dict(addresses=ipc_address, topics="", nameserver=False, port=10202)
sub = create_subscriber_from_dict_config(subscriber_settings)
from posttroll.publisher import Publisher

pub = Publisher(ipc_address)

pub.start()

def delayed_send(msg):
time.sleep(.2)
from posttroll.message import Message
msg = Message(subject="/hi", atype="string", data=msg)
pub.send(str(msg))
from threading import Thread
thr = Thread(target=delayed_send, args=["very sensitive message"])
thr.start()
try:
Expand Down Expand Up @@ -125,19 +125,15 @@ def test_ipc_pubsub_with_sec_and_factory_sub(tmp_path):
server_secret_key_file=server_secret_key_file):
subscriber_settings = dict(addresses=ipc_address, topics="", nameserver=False, port=10202)
sub = create_subscriber_from_dict_config(subscriber_settings)
from posttroll.publisher import create_publisher_from_dict_config
pub_settings = dict(address=ipc_address,
nameservers=False, port=1789)
pub = create_publisher_from_dict_config(pub_settings)

pub.start()

def delayed_send(msg):
time.sleep(.2)
from posttroll.message import Message
msg = Message(subject="/hi", atype="string", data=msg)
pub.send(str(msg))
from threading import Thread
thr = Thread(target=delayed_send, args=["very sensitive message"])
thr.start()
try:
Expand Down Expand Up @@ -167,7 +163,6 @@ def test_switch_to_secure_backend_for_nameserver(tmp_path):

def test_create_certificates_cli(tmp_path):
"""Test the certificate creation cli."""
from posttroll.backends.zmq import generate_keys
name = "server"
args = [name, "-d", str(tmp_path)]
generate_keys(args)
Expand Down

0 comments on commit 7a2633e

Please sign in to comment.