Skip to content

Commit

Permalink
Bump version of pyyaml
Browse files Browse the repository at this point in the history
  • Loading branch information
belvedere-trading-user committed Oct 26, 2021
1 parent e2e9524 commit 58f3944
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion required_packages.req
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
click>=6.0
PyYAML>=3.0
PyYAML>=5.4.1
voluptuous>=0.10.0
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from util import VigilanceTestCase, mock_decorator

@mock.patch('yaml.load')
@mock.patch('yaml.full_load')
@mock.patch('vigilance.cli.open', create=True)
class CliTest(VigilanceTestCase):
@property
Expand Down
2 changes: 1 addition & 1 deletion vigilance/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def main(configFile): #pylint: disable=missing-docstring, invalid-name
The default configuration file if no options are passed is vigilance.yaml within the current working directory.
"""
try:
suites = ConfigurationSchema(yaml.load(configFile))['suites']
suites = ConfigurationSchema(yaml.full_load(configFile))['suites']
except yaml.YAMLError:
raise ConfigurationParsingError('Could not load configuration file as yaml')
except Invalid as ex:
Expand Down

0 comments on commit 58f3944

Please sign in to comment.