From 8f9c0bc6fa16eab111ccfb460b6761f3dd72b804 Mon Sep 17 00:00:00 2001 From: "Bagg Tobias (ETAS-DAP/XPC-Fe3)" Date: Mon, 1 Jul 2024 11:30:02 +0000 Subject: [PATCH] tests: adjust due to new attribute returned sysrepo returns also an "location" attribute now. Fixes: https://github.com/sysrepo/sysrepo-python/issues/69 Signed-off-by: tbsuht <126770680+tbsuht@users.noreply.github.com> --- tests/test_session.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_session.py b/tests/test_session.py index fa6a4e4..f100503 100644 --- a/tests/test_session.py +++ b/tests/test_session.py @@ -7,6 +7,7 @@ import time import types import unittest +from unittest.mock import ANY import sysrepo @@ -63,6 +64,7 @@ def test_session_get_data(self): "name": "sysrepo-example", "namespace": "n", "feature": ["turbo"], + "location": ANY, } self.assertIn(modinfo, data)