Skip to content

Commit

Permalink
Update requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Holyoke committed Mar 7, 2015
1 parent 77e493a commit 5546667
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
14 changes: 9 additions & 5 deletions mountebank-python/mountebank.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import requests, json
'''
http://www.mbtest.org/
imposter has multiple stubs
stub has multiple predicates and responses
predicates define which stub matches
when a stub matches it uses its next response
'''

MOUNTEBANK_HOST = 'http://localhost'
MOUNTEBANK_URL = MOUNTEBANK_HOST + ':2525'
Expand All @@ -22,10 +29,7 @@ def get_all_imposters():
def get_imposter(port):
return requests.get("{}/imposters/:{}".format(MOUNTEBANK_HOST, port))

'''
Imposter has multiple stubs
Stub has multiple predicates and a list of responses
'''


class MountebankException(Exception):
pass
Expand Down Expand Up @@ -85,4 +89,4 @@ def destroy(self):
assert requests.post(ms.get_url('account_overview'), params={'advertiser': 'a', 'start_date': 'b'}).status_code == 400

ms.destroy()
delete_al
delete_all_imposters()
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@
download_url = 'https://github.com/aholyoke/mountebank-python/tarball/0.1',
keywords = ['testing', 'mountebank'],
classifiers = [],
install_requires = [
'requests>=2.5.3',
]
)

0 comments on commit 5546667

Please sign in to comment.