From f3af9394f58680f45fe55ac58996088a9b8525a7 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 31 Mar 2021 23:49:01 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A5=20*things=20happened=20here*?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- royalnet-console.iml | 8 +------- royalnet_console/tests/test_pda.py | 13 +++++-------- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/royalnet-console.iml b/royalnet-console.iml index 170fd5bc..91d076fe 100644 --- a/royalnet-console.iml +++ b/royalnet-console.iml @@ -2,13 +2,7 @@ - - - - - - - + diff --git a/royalnet_console/tests/test_pda.py b/royalnet_console/tests/test_pda.py index 0541e033..cebf42d9 100644 --- a/royalnet_console/tests/test_pda.py +++ b/royalnet_console/tests/test_pda.py @@ -1,6 +1,6 @@ import pytest from royalnet_console.pda import ConsolePDA -from royalnet.engineer import PartialCommand, Sentry, Message +import royalnet.engineer as engi def test_construction(): @@ -15,22 +15,19 @@ def pda(): @pytest.fixture def command(): - @PartialCommand.new(syntax="") - async def test(*, _sentry: Sentry, _msg: Message, **__): - """ - Ah, non lo so io! - """ + @engi.PartialCommand.new(syntax="") + async def test(*, _sentry: engi.Sentry, _msg: engi.Message, **__): await _msg.reply(text=r"test") return test -def test_registration(pda: ConsolePDA, command: PartialCommand): +def test_registration(pda: ConsolePDA, command: engi.PartialCommand): pda.register_partial(command, ["test"]) @pytest.fixture -def pda_with_command(pda: ConsolePDA, command: PartialCommand): +def pda_with_command(pda: ConsolePDA, command: engi.PartialCommand): pda.register_partial(command, ["test"]) return pda