Bump PyYAML version (#1174)

This commit is contained in:
Ante Pušić 2023-08-23 12:48:17 +02:00 committed by GitHub
parent 9355e58e73
commit 3f8befde79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 12 deletions

View File

@ -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

View File

@ -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)

View File

@ -1,2 +1,2 @@
ldap3==2.6
pyyaml==5.4.1
pyyaml==6.0.1

View File

@ -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"