示例#1
0
def valid_guids():
    return utils.load_json_file(_DIR, 'guids.json')['valid_guids']
示例#2
0
import os

from stackcite.api import utils

_DIR = os.path.dirname(__file__)

GROUP_CHOICES = utils.load_json_file(_DIR, 'groups.json')
GROUPS = [k for k, v in GROUP_CHOICES]
USERS, STAFF, ADMIN = GROUPS
示例#3
0
def invalid_usernames():
    return utils.load_json_file(_DIR, 'usernames.json')['invalid_usernames']
示例#4
0
def invalid_passwords():
    return utils.load_json_file(_DIR, 'passwords.json')['invalid_passwords']
示例#5
0
def invalid_keys():
    return utils.load_json_file(_DIR, 'keys.json')['invalid_keys']
示例#6
0
def invalid_isbns():
    return utils.load_json_file(_DIR, 'isbns.json')['invalid_isbns']
示例#7
0
def valid_isbn13s():
    return utils.load_json_file(_DIR, 'isbns.json')['valid_isbn13s']