diff options
author | John Estabrook <jestabro@vyos.io> | 2023-08-10 15:15:18 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2023-08-10 22:26:55 -0500 |
commit | 7978ac921faba95d9b452ff1788eafa85c6057f0 (patch) | |
tree | 3fa943fb6c0274289993bd7863055ac73c20288e /src/tests | |
parent | 549a199e96c9d37c3af9d25bda6136c23e57e79a (diff) | |
download | vyos-1x-7978ac921faba95d9b452ff1788eafa85c6057f0.tar.gz vyos-1x-7978ac921faba95d9b452ff1788eafa85c6057f0.zip |
T5434: use package specific cache in nosetests
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/test_initial_setup.py | 6 |
1 files changed, 4 insertions, 2 deletions
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') |