Skip to content

Instantly share code, notes, and snippets.

Mark Allison mallison

Block or report user

Report or block mallison

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
@mallison
mallison / event.json
Created May 15, 2019
Single schema 🤔
View event.json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://example.com/root.json",
"type": "object",
"title": "The Root Schema",
"properties": {
"trigger": {
"oneOf": [
{
"$ref": "#/definitions/tapTrigger"
@mallison
mallison / runner.py
Created May 14, 2012 — forked from carljm/runner.py
Unittest2 test discovery and real dotted-path named test selection for Django
View runner.py
"""
An alternative Django ``TEST_RUNNER`` which uses unittest2 test discovery from
a base path specified in settings, rather than requiring all tests to be in
``tests`` module of an app.
If you just run ``./manage.py test``, it'll discover and run all tests
underneath the ``TEST_DISCOVERY_ROOT`` setting (a path). If you run
``./manage.py test full.dotted.path.to.test_module``, it'll run the tests in
that module (you can also pass multiple modules).
You can’t perform that action at this time.