From 7978ac921faba95d9b452ff1788eafa85c6057f0 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Thu, 10 Aug 2023 15:15:18 -0500 Subject: T5434: use package specific cache in nosetests --- src/tests/test_initial_setup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/tests') diff --git a/src/tests/test_initial_setup.py b/src/tests/test_initial_setup.py index cb843ff09..ba50d06cc 100644 --- a/src/tests/test_initial_setup.py +++ b/src/tests/test_initial_setup.py @@ -21,14 +21,16 @@ import vyos.configtree import vyos.initialsetup as vis from unittest import TestCase -from vyos import xml +from vyos.xml_ref import definition +from vyos.xml_ref.pkg_cache.vyos_1x_cache import reference class TestInitialSetup(TestCase): def setUp(self): with open('tests/data/config.boot.default', 'r') as f: config_string = f.read() self.config = vyos.configtree.ConfigTree(config_string) - self.xml = xml.load_configuration() + self.xml = definition.Xml() + self.xml.define(reference) def test_set_user_password(self): vis.set_user_password(self.config, 'vyos', 'vyosvyos') -- cgit v1.2.3