This file contains hidden or 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
| # myapp/management/commands/make_smoke_tests.py | |
| from django.core.management.base import BaseCommand | |
| from django.urls import get_resolver, URLPattern, URLResolver | |
| import re | |
| import os | |
| class Command(BaseCommand): | |
| help = 'Generates smoke tests for projects.' | |
| def add_arguments(self, parser): |
This file contains hidden or 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
| To remove a submodule you need to: | |
| Delete the relevant line from the .gitmodules file. | |
| Delete the relevant section from .git/config. | |
| Run git rm --cached path_to_submodule (no trailing slash). | |
| Commit and delete the now untracked submodule files. |
This file contains hidden or 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
| .fb_access_token | |
| .fbconsole.py |
This file contains hidden or 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
| diff --git a/medley/playlist/tests/tests.py b/medley/playlist/tests/tests.py | |
| index 56d7ca4..b350f56 100644 | |
| --- a/medley/playlist/tests/tests.py | |
| +++ b/medley/playlist/tests/tests.py | |
| @@ -15,6 +15,9 @@ from medley.playlist.models import Artist, Track, History, ArtistImage, Snapshot | |
| from medley.playlist.trailer.amazon import AmazonTrailer | |
| +class RequiresAMGTestCase(TestCase): | |
| + requires_databases = ['default', 'amgdb'] |
This file contains hidden or 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 threading import local | |
| _blah = local() | |
| class StopThatShit(Exception): | |
| pass | |
| def patch(): | |
| from django.db.backends import util | |
| from django import template |
This file contains hidden or 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
| #!/usr/bin/env python | |
| """ | |
| Nagios plugin to check PostgreSQL 9 streaming replication lag. | |
| Requires psycopg2 and nagiosplugin (both installable with pip/easy_install). | |
| MIT licensed: | |
| Copyright (c) 2010 Jacob Kaplan-Moss. All rights reserved. |
This file contains hidden or 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
| class AbstractMixin(object): | |
| _classcache = {} | |
| @classmethod | |
| def contribute(cls): | |
| return {} | |
| @classmethod | |
| def construct(cls, *args, **kwargs): | |
| attrs = cls.contribute(*args, **kwargs) |