From 0ba450dcfef01cbaaa3c7d1f0d0d289c89858510 Mon Sep 17 00:00:00 2001 From: draco Date: Wed, 27 Dec 2023 00:34:07 +0100 Subject: [PATCH] close client session on teardown, fixes error messages --- tests/fixtures/clients.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/fixtures/clients.py b/tests/fixtures/clients.py index 6dd4d6d..cbc1206 100644 --- a/tests/fixtures/clients.py +++ b/tests/fixtures/clients.py @@ -21,4 +21,6 @@ def qobuz_client(): client = QobuzClient(config) arun(client.login()) - return client + yield client + + arun(client.session.close())