Skip to content
This repository has been archived by the owner on Oct 14, 2021. It is now read-only.

Commit

Permalink
testing - replace App to allow flexibility of assigned objects
Browse files Browse the repository at this point in the history
  • Loading branch information
amitnabarro committed Dec 31, 2018
1 parent 6d6df0d commit faadfcb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tbone/testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@
from collections import namedtuple


App = namedtuple('App', 'db')
Response = namedtuple('Response', 'headers, payload, status')


class App(object):
def __init__(self, db=None, **kwargs):
self.db = db


class Request(dict):
__slots__ = (
'app', 'headers', 'method', 'body', 'args', 'url', 'user'
Expand Down

0 comments on commit faadfcb

Please sign in to comment.