Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlyter committed Jul 1, 2024
1 parent 2348bfe commit 9e97dcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion evrec/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


class MQTT(BaseModel):
broker: MqttUrl
broker: MqttUrl = Field(default="mqtt://localhost")
username: str | None = None
password: str | None = None
topic_read: str
Expand Down
7 changes: 2 additions & 5 deletions tests/test_mqtt.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
from evrec.server import EvrecServer
from evrec.settings import Settings
from evrec.settings import MQTT, Settings


def test_server():
settings = Settings(
clients_database="clients",
mqtt_broker=None,
mqtt_topic_read="read",
mqtt_topic_write="write",
clients_database="clients", mqtt=MQTT(topic_read="read", topic_write="write")
)
_ = EvrecServer(settings)

0 comments on commit 9e97dcc

Please sign in to comment.