Skip to content

Instantly share code, notes, and snippets.

Andrew Yurisich Droogans

Block or report user

Report or block Droogans

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Droogans /
Created Feb 8, 2019
This is as close to abusing the fixture pattern as I would ever like to get, but it was needed in a hurry and it got rid of a lot of duplicate code.
from itertools import chain, starmap
import pydash
import pytest
def response(test_request):
Use after calling the `test_request` fixture. Provides the resulting api request response object(s).
Droogans / bill.spec.js
Last active Nov 6, 2015
Exercising the buffalo module.
View bill.spec.js
var _ = require('lodash'); // gotta use lodash for everything
var bill = require('buffalo');
var events =;
var conditions;
var victim;
* TODO -- stop mixing promises and events, this API is really messed up.
describe('suit construction', function () {
def is_negative(number):
return number < 0
def pos_neg(a, b, negative):
if negative:
return a < 0 and b < 0
return len(set(map(is_negative, [a, b]))) > 1
View gist:9b39d4817d0fcacfc65c

FYI everyone, wait to merge anything further until we get 295 down


You can’t perform that action at this time.