This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pytest | |
pytestmark = pytest.mark.django_db | |
def test_quality_flow(mixer, personal): | |
from core.flows import QualityFlow as flow | |
org = mixer.blend('core.organization', role='supplier') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{u'created_at': u'2014-12-12T15:52:17.293000+00:00', | |
u'deal': {u'extra': u'0%', u'pfc': False}, | |
u'id': u'548b0f319cb53807b216a356', | |
u'lifetime': VEVENT({u'DTEND': <icalendar.prop.vDDDTypes object at 0x2b04fee34cd0>, u'DTSTART': <icalendar.prop.vDDDTypes object at 0x2b04fee34fd0>}), | |
u'media': {u'cover': {u'author': u'548b08ff9cb53807b316a3f9', | |
u'content_type': u'image/jpeg', | |
u'id': u'548b16fd9cb53807b416b196', | |
u'length': 1055109, | |
u'md5hash': u'c5d7507d67487db44e9c4777edabd56c', | |
u'url': u'https://s3-eu-west-1.amazonaws.com:443/media.ticketscloud/production/image/2014-12/548b16fd9cb53807b416b196.jpe'}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[hekad] | |
base_dir = "/var/cache/hekad" | |
pid_file = "/var/run/hekad.pid" | |
maxprocs = 1 | |
[UdpInput] | |
address = ":2003" | |
splitter = "TokenSplitter" | |
decoder = "StatsToFieldsDecoder" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from aiohttp import CIMultiDict | |
# ... somewhere ... | |
request._headers = CIMultiDict(MY_CUSTOM_HEADER='VALUE HERE', MY_OTHER_CUSTOM_HEADER='VALUE HERE', **request.headers) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global window */ | |
'use strict'; | |
require('utils/preload'); | |
require('utils/legacy'); | |
var Backbone = require('backbone'); | |
var app = require('objects/app.js'); | |
var bqueue = require('objects/blanks-queue'); | |
var conf = require('utils/conf'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Provide information about opportunities.""" | |
from collections import OrderedDict | |
import datetime as dt | |
import json | |
from flask import request | |
from flask_restler import route | |
from flask_restler.peewee import Filter, ModelFilters | |
from peewee import PostgresqlDatabase, SQL, Clause |
OlderNewer