Bump PyYAML version (#1174)
This commit is contained in:
parent
9355e58e73
commit
3f8befde79
@ -2,5 +2,5 @@ behave==1.2.6
|
||||
neo4j-driver==4.1.1
|
||||
parse==1.18.0
|
||||
parse-type==0.5.2
|
||||
PyYAML==5.4.1
|
||||
PyYAML==6.0.1
|
||||
six==1.15.0
|
||||
|
@ -40,15 +40,15 @@ class TestParameters:
|
||||
par = dict()
|
||||
for row in table:
|
||||
par[row[0]] = self.parse_parameters(row[1])
|
||||
if isinstance(par[row[0]], str) and par[row[0]].startswith("'") \
|
||||
and par[row[0]].endswith("'"):
|
||||
par[row[0]] = par[row[0]][1:len(par[row[0]]) - 1]
|
||||
if isinstance(par[row[0]], str) and par[row[0]].startswith("'") and par[row[0]].endswith("'"):
|
||||
par[row[0]] = par[row[0]][1 : len(par[row[0]]) - 1]
|
||||
par[table.headings[0]] = self.parse_parameters(table.headings[1])
|
||||
if isinstance(par[table.headings[0]], str) and \
|
||||
par[table.headings[0]].startswith("'") and \
|
||||
par[table.headings[0]].endswith("'"):
|
||||
par[table.headings[0]] = \
|
||||
par[table.headings[0]][1:len(par[table.headings[0]]) - 1]
|
||||
if (
|
||||
isinstance(par[table.headings[0]], str)
|
||||
and par[table.headings[0]].startswith("'")
|
||||
and par[table.headings[0]].endswith("'")
|
||||
):
|
||||
par[table.headings[0]] = par[table.headings[0]][1 : len(par[table.headings[0]]) - 1]
|
||||
|
||||
self.parameters = par
|
||||
|
||||
@ -77,4 +77,4 @@ class TestParameters:
|
||||
Format readable for a database.
|
||||
"""
|
||||
|
||||
return yaml.load(val)
|
||||
return yaml.load(val, Loader=yaml.FullLoader)
|
||||
|
@ -1,2 +1,2 @@
|
||||
ldap3==2.6
|
||||
pyyaml==5.4.1
|
||||
pyyaml==6.0.1
|
||||
|
@ -14,7 +14,7 @@ PIP_DEPS=(
|
||||
"parse==1.18.0"
|
||||
"parse-type==0.5.2"
|
||||
"pytest==7.3.2"
|
||||
"pyyaml==5.4.1"
|
||||
"pyyaml==6.0.1"
|
||||
"six==1.15.0"
|
||||
"networkx==2.4"
|
||||
"gqlalchemy==1.3.3"
|
||||
|
Loading…
Reference in New Issue
Block a user