models/tests: fix lint

black will reformat this in a manner that trips flake8.
This commit is contained in:
Dan Bungert 2023-07-21 15:48:53 -06:00
parent ff8d890f2a
commit f5de7dd030
1 changed files with 3 additions and 1 deletions

View File

@ -268,7 +268,9 @@ class TestSubiquityModel(unittest.IsolatedAsyncioTestCase):
model.identity.add_user(main_user)
model.userdata = {}
expected_files = {
'etc/cloud/cloud.cfg.d/99-installer.cfg': re.compile('datasource:\n None:\n metadata:\n instance-id: .*\n userdata_raw: "#cloud-config\\\\ngrowpart:\\\\n mode: \\\'off\\\'\\\\npreserve_hostname: true\\\\n\\\\\n'), # noqa
'etc/cloud/cloud.cfg.d/99-installer.cfg': re.compile(
'datasource:\n None:\n metadata:\n instance-id: .*\n userdata_raw: "#cloud-config\\\\ngrowpart:\\\\n mode: \\\'off\\\'\\\\npreserve_hostname: true\\\\n\\\\\n' # noqa
),
'etc/hostname': 'somehost\n',
'etc/cloud/ds-identify.cfg': 'policy: enabled\n',
'etc/hosts': HOSTS_CONTENT.format(hostname='somehost'),