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
{"style": ["Broken Beat", "Techno", "Tech House"], "extraartists": [{"tracks": "", "role": "Producer, Recorded By", "name": "Alexi Delano"}, {"tracks": "", "role": "Producer, Recorded By", "name": "Cari Lekebusch"}, {"tracks": "", "role": "Written-By", "name": "Alexi Delano", "anv": "A. Delano"}, {"tracks": "", "role": "Written-By", "name": "Cari Lekebusch", "anv": "C. Lekebusch"}], "format": [{"text": "", "desc": ["12\""], "name": "Vinyl", "qty": "1"}], "country": "Sweden", "notes": "All joints recorded in NYC (Dec.97).", "labels": [{"catno": "SK 026", "name": "Svek"}, {"catno": "SK026", "name": "Svek"}], "artists": [{"name": "Mr. James Barth & A.D."}], "released": "1998-06-00", "tracks": [{"duration": "5:08", "pos": "A1", "title": "A Sea Apart"}, {"duration": "4:21", "pos": "A2", "title": "Dutchmaster"}, {"duration": "4:22", "pos": "B1", "title": "Inner City Lullaby"}, {"duration": "4:46", "pos": "B2", "title": "Yeah Kid!"}], "year": "1998", "genre": ["Electronic"], "title": "Knockin' Boots Vol 2 Of 2", "re |
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 base import BaseTestCase | |
from tests.lib.actions import HtmlDocument, click_link, click_button, fill_in | |
from tests.lib.exceptions import LinkNotFound, ButtonNotFound, InputNotFound | |
from werkzeug.wrappers import Response | |
class TestLibActions(BaseTestCase): | |
def test_click_link(self): | |
self.assertEqual(click_link(response, 'Explore Releases'), '/releases') | |
self.assertRaises(LinkNotFound, click_link, response, 'wat') |
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 base import BaseTestCase | |
from tests.lib.actions import HtmlDocument, click_link | |
from werkzeug.wrappers import Response | |
response = Response(''' | |
<html> | |
<head> | |
<title>Discogs</title> | |
</head> |
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
set nocompatible | |
call pathogen#infect('~/src/vim/bundle/{}') | |
call pathogen#helptags() | |
syntax on | |
filetype on | |
filetype plugin on | |
filetype indent on | |
set exrc " enable per-directory .vimrc 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
--ignore-dir=dst | |
--type-set=SQL=.sql | |
--noSQL | |
--type-set=CSS=.scss |
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
# aligned | |
return str('%s://%s/%s%s' % ( | |
self.url_scheme, | |
self.get_host(domain_part), | |
posixpath.join(self.script_name[:-1].lstrip('/'), | |
url_quote(path_info.lstrip('/'), self.map.charset, | |
safe='/:|+')), | |
suffix | |
)) |
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
# This | |
item_details = { | |
'item_id': int('%d%d%d' % (release_id, user['uid'], c)), | |
'uid': user['uid'], | |
'cond': cond, | |
'price': 5.00, | |
'curr_id': user['seller_curr_id'], | |
'release_id': release_id, | |
'post_ts': SYSDATE, | |
'status': 'For Sale', |
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
# This | |
def fixture_create_user(*args, **kwargs): | |
username = kwargs.pop('username', 'test') | |
seller = kwargs.pop('seller', False) | |
buyer = kwargs.pop('buyer', False) | |
voter = kwargs.pop('voter', False) | |
curr_id = kwargs.pop('curr_id', 1) | |
banned = kwargs.pop('banned', 'N') | |
account_closed = kwargs.pop('account_closed', 'N') | |
auto_activate = kwargs.pop('auto_activate', True) |
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
filetype off | |
call pathogen#infect('~/src/vim/bundle') | |
call pathogen#helptags() | |
filetype plugin indent on | |
syntax on | |
set expandtab | |
set shiftwidth=4 | |
set tabstop=4 |
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
call pathogen#infect('~/src/vim/bundle') | |
syntax on | |
filetype plugin indent on | |
set expandtab | |
set shiftwidth=4 | |
set tabstop=4 | |
set smarttab | |
set ai "Auto indent |