From 0c2f3f7732cef8519deb66e26edfdae5e8c9f370 Mon Sep 17 00:00:00 2001 From: Jeffrey Linwood Date: Wed, 26 Sep 2018 21:31:57 -0500 Subject: [PATCH] Switch from deprecated fake-factory to faker --- app.py | 4 ++-- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 804573c..ac27e42 100644 --- a/app.py +++ b/app.py @@ -1,6 +1,6 @@ import os from flask import Flask, jsonify, request -from faker import Factory +from faker import Faker from twilio.rest import Client from twilio.jwt.access_token import AccessToken from twilio.jwt.access_token.grants import ( @@ -20,7 +20,7 @@ def snake_case_keys(somedict): return snake_case_dict app = Flask(__name__) -fake = Factory.create() +fake = Faker() dotenv_path = join(dirname(__file__), '.env') load_dotenv(dotenv_path) diff --git a/requirements.txt b/requirements.txt index cbb59fd..33154bb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ Flask==1.0.2 -fake-factory==0.5.3 +faker==0.9.1 twilio==6.17.0 python-dotenv==0.9.1 inflection==0.3.1