Fix formatting issues
Code should be formatted via black. Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
parent
56fea60595
commit
9b12be7300
5 changed files with 46 additions and 43 deletions
|
|
@ -582,12 +582,8 @@ class TestSchemaValidator(unittest.TestCase):
|
|||
"definitions": {
|
||||
"scm_dict": {
|
||||
"properties": {
|
||||
"scm": {
|
||||
"enum": ["git"]
|
||||
},
|
||||
"repo": {
|
||||
"enum": ["git://localhost/pungi-fedora.git"]
|
||||
},
|
||||
"scm": {"enum": ["git"]},
|
||||
"repo": {"enum": ["git://localhost/pungi-fedora.git"]},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -595,11 +591,12 @@ class TestSchemaValidator(unittest.TestCase):
|
|||
schema = checks.update_schema(schema, schema_override)
|
||||
scm_dict_properties = schema["definitions"]["scm_dict"]["properties"]
|
||||
self.assertEqual(
|
||||
scm_dict_properties["scm"],
|
||||
{'enum': ['git'], 'type': 'string'})
|
||||
scm_dict_properties["scm"], {"enum": ["git"], "type": "string"}
|
||||
)
|
||||
self.assertEqual(
|
||||
scm_dict_properties["repo"],
|
||||
{'enum': ['git://localhost/pungi-fedora.git'], 'type': 'string'})
|
||||
{"enum": ["git://localhost/pungi-fedora.git"], "type": "string"},
|
||||
)
|
||||
self.assertEqual(scm_dict_properties["file"], {"type": "string"})
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue