refactor!: remove faker from requirements.txt
This commit is contained in:
parent
9f0fe09e00
commit
a6c752458b
3 changed files with 2 additions and 4 deletions
1
dev-requirements.txt
Normal file
1
dev-requirements.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
Faker~=8.1.0
|
||||
|
|
@ -30,9 +30,6 @@ from .utils.lazy_loader import lazy_import
|
|||
|
||||
from frappe.query_builder import get_query_builder, patch_query_execute
|
||||
|
||||
# Lazy imports
|
||||
faker = lazy_import('faker')
|
||||
|
||||
__version__ = '14.0.0-dev'
|
||||
|
||||
__title__ = "Frappe Framework"
|
||||
|
|
@ -1838,6 +1835,7 @@ def parse_json(val):
|
|||
return parse_json(val)
|
||||
|
||||
def mock(type, size=1, locale='en'):
|
||||
import faker
|
||||
results = []
|
||||
fake = faker.Faker(locale)
|
||||
if type not in dir(fake):
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ croniter~=1.0.11
|
|||
cryptography~=3.4.7
|
||||
dropbox~=11.7.0
|
||||
email-reply-parser~=0.5.12
|
||||
Faker~=8.1.0
|
||||
git-url-parse~=1.2.2
|
||||
gitdb~=4.0.7
|
||||
GitPython~=3.1.14
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue