Skip to content

Instantly share code, notes, and snippets.

View LondonAppDev's full-sized avatar

Mark Winterbottom LondonAppDev

View GitHub Profile
@LondonAppDev
LondonAppDev / atom-install-pycode-linter.sh
Created April 27, 2017 17:14
Atom install Pycode Linter
apm install linter
apm install linter-pycodestyle
@LondonAppDev
LondonAppDev / atom-install-minimap.sh
Created April 27, 2017 17:10
Atom install Minimap
apm install minimap
@LondonAppDev
LondonAppDev / bootstrap.sh
Created February 7, 2017 08:19
Python REST API bootstrap.sh script
#!/usr/bin/env bash
# Update the apt repos.
sudo apt-get update
# Install required dev packages.
sudo apt-get install -y language-pack-en
sudo apt-get install -y python3-dev python-pip python-dev
# Install virtualenvwrapper
class SubVenueModelTest(TestCase):
def test_create_subvenue_and_get_name(self):
location = create_location(2, "Test Location2")
venue = create_venue(name="Test_Venue2",location=location)
sport1 = create_sport("Test")
sub_venue = models.SubVenue()
sub_venue.venue=venue
sub_venue.name="Test Sub Venuexxx"
sub_venue.sports.add(sport1.id)
sub_venue.save()
{
"count": 2,
"next": null,
"previous": null,
"results": [
{
"id": 7,
"sequence_id": 7,
"sender_friend_id": 5,
"recipient_friend_id": 1,