Skip to content

Commit

Permalink
PEP8 Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
super3 committed May 27, 2015
1 parent de74e14 commit fe24ead
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion dataserv/Farmer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy

app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/test.db'
db = SQLAlchemy(app)


class Farmer:
def __init__(self, btc_address, conn = None):
def __init__(self, btc_address, conn=None):
"""
A farmer is a un-trusted client that provides some disk space
in exchange for payment.
Expand Down
2 changes: 1 addition & 1 deletion dataserv/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ def connect_db():
# Routes
@app.route('/')
def index():
return "Hello World."
return "Hello World."
2 changes: 1 addition & 1 deletion tests/test_Farmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ def test_valid_address(self):
def test_address_error(self):
addr1 = 'not valid address'
farmer1 = Farmer(addr1)
self.assertRaises(ValueError, farmer1.validate)
self.assertRaises(ValueError, farmer1.validate)

0 comments on commit fe24ead

Please sign in to comment.