Skip to content

Commit

Permalink
Loader with param instead of safe load
Browse files Browse the repository at this point in the history
  • Loading branch information
mzulqarnain1 committed Feb 25, 2022
1 parent 2e5e3a1 commit ad4325b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion flask_fixtures/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class YAMLLoader(FixtureLoader):

def load(self, filename):
with open(filename) as fin:
return yaml.safe_load(fin)
return yaml.load(fin, Loader=yaml.Loader)


def load(filename):
Expand Down
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@

setup(
name="Flask-YAML-Fixtures",
version="0.5.0",
url="https://github.com/mzulqarnain1/Flask-Fixtures",
version="0.5.1",
url="https://github.com/mzulqarnain1/Flask-YAML-Fixtures",
license="MIT License",
author="Muhammad Zulqarnain",
author="M. Zulqarnain",
author_email="[email protected]",
maintainer="Muhammad Zulqarnain",
maintainer="M. Zulqarnain",
maintainer_email="[email protected]",
description="A simple library for adding database fixtures for unit tests using nothing but JSON or YAML.",
long_description=README,
Expand Down

0 comments on commit ad4325b

Please sign in to comment.