1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import os
import json
from django.conf import settings
with open(os.path.join(settings.BASE_DIR, "mockapp", "fixtures", "mocklocation.json"), "r") as f:
mocklocation_size = len(json.loads(f.read()))
MOCKLOCATION_DATA_SET_SIZE = mocklocation_size
with open(os.path.join(settings.BASE_DIR, "mockapp", "fixtures", "mockperson.json"), "r") as f:
mockperson_size = len(json.loads(f.read()))
MOCKPERSON_DATA_SET_SIZE = mockperson_size
|