summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-03-26 11:40:41 +0100
committermathieui <mathieui@mathieui.net>2021-04-02 17:44:36 +0200
commitd27895e04e9100e9368a81756c0d679155a571d8 (patch)
tree3e79240ece04cd9a2e811b974033cad873f4bdd7
parent14cbbefdde377fafb52fe306956cd91c68d39d8e (diff)
downloadpoezio-d27895e04e9100e9368a81756c0d679155a571d8.tar.gz
poezio-d27895e04e9100e9368a81756c0d679155a571d8.tar.bz2
poezio-d27895e04e9100e9368a81756c0d679155a571d8.tar.xz
poezio-d27895e04e9100e9368a81756c0d679155a571d8.zip
tests: use named parameters for user test
-rw-r--r--test/test_user.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/test_user.py b/test/test_user.py
index e3222383..cda85577 100644
--- a/test/test_user.py
+++ b/test/test_user.py
@@ -11,13 +11,13 @@ from poezio.user import User
@pytest.fixture
def user1():
return User(
- 'nick1',
- 'member',
- 'xa',
- 'My Status!',
- 'moderator',
- JID('foo@muc/nick1'),
- 'red',
+ nick='nick1',
+ affiliation='member',
+ show='xa',
+ status='My Status!',
+ role='moderator',
+ jid=JID('foo@muc/nick1'),
+ color='red',
)