Пример #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']