File: constants.py

package info (click to toggle)
drf-haystack 1.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 564 kB
  • sloc: python: 2,608; makefile: 147
file content (17 lines) | stat: -rw-r--r-- 524 bytes parent folder | download | duplicates (5)
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