Skip to content

Commit

Permalink
Remove send_feedback, and local_only tests.
Browse files Browse the repository at this point in the history
`send_feedback` is no longer supported. Feedback can be sent my sending a
message to /r/reddit.com.

`local_only` tests have been moved into an appropriate `test_classname.py` file
and betamaxified so that they actually represent responses from reddit.
  • Loading branch information
bboe committed Apr 15, 2015
1 parent 77ce280 commit d7cdc76
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 119 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Unreleased
``unicode(sub_instance)``.
* **[FEATURE]** Added :meth:`get_message` to fetch a single Message object
by its ID.
* **[REDDIT]** Removed ``send_feedback`` as it is no longer supported by
reddit.

PRAW 2.1.21
-----------
Expand Down
21 changes: 0 additions & 21 deletions praw/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ class Config(object): # pylint: disable=R0903
'domain': 'domain/%s/',
'duplicates': 'duplicates/%s/',
'edit': 'api/editusertext/',
'feedback': 'api/feedback/',
'flair': 'api/flair/',
'flairconfig': 'api/flairconfig/',
'flaircsv': 'api/flaircsv/',
Expand Down Expand Up @@ -1111,26 +1110,6 @@ def search_reddit_names(self, query):
data=data)
return [self.get_subreddit(name) for name in results['names']]

@decorators.require_captcha
def send_feedback(self, name, email, message, reason='feedback',
captcha=None):
"""Send feedback to the admins.
Please don't abuse this. Read the send feedback page at
http://www.reddit.com/feedback/ (for reddit.com) before use.
:returns: The json response from the server.
"""
data = {'name': name,
'email': email,
'reason': reason,
'text': message}
if captcha:
data.update(captcha)
return self.request_json(self.config['feedback'], data=data,
retry_on_error=False)


class AuthenticatedReddit(OAuth2Reddit, UnauthenticatedReddit):

Expand Down
1 change: 1 addition & 0 deletions tests/cassettes/test_create_and_delete_redditor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"http_interactions": [{"request": {"body": {"string": "passwd=1111&user=PyAPITestUser3&api_type=json&email=&passwd2=1111", "encoding": "utf-8"}, "headers": {"Content-Length": ["65"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["PRAW_test_suite PRAW/3.0a1 Python/2.7.5 Darwin-13.4.0-x86_64-i386-64bit"], "Connection": ["keep-alive"], "Content-Type": ["application/x-www-form-urlencoded"]}, "method": "POST", "uri": "https://api.reddit.com/api/register/.json"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA6pWyirOz1OyUqhWSi0qyi8qVrJSiI5WCg12DfJz9HWND3H0dvVT0lFQKslILFEoLU4tykvMTVXILFZIzClKTUypVChJzE7NA6kASSrFxtbWAgAAAP//AwAsYaPjVAAAAA==", "encoding": "UTF-8"}, "headers": {"x-xss-protection": ["1; mode=block"], "x-content-type-options": ["nosniff"], "content-encoding": ["gzip"], "transfer-encoding": ["chunked"], "set-cookie": ["__cfduid=d903d312988ae272ff3dfad9531eee38c1429112625; expires=Thu, 14-Apr-16 15:43:45 GMT; path=/; domain=.reddit.com; HttpOnly"], "server": ["cloudflare-nginx"], "connection": ["keep-alive"], "x-ua-compatible": ["IE=edge"], "cache-control": ["no-cache"], "date": ["Wed, 15 Apr 2015 15:43:45 GMT"], "x-frame-options": ["SAMEORIGIN"], "x-moose": ["majestic"], "content-type": ["application/json; charset=UTF-8"], "cf-ray": ["1d78c4947cc80da3-SJC"]}, "cookies": [{"comment": null, "domain": ".reddit.com", "name": "__cfduid", "expires": 1460648625, "value": "d903d312988ae272ff3dfad9531eee38c1429112625", "version": 0, "rfc2109": false, "discard": false, "path": "/", "rest": {"HttpOnly": null}, "port": null, "comment_url": null, "secure": false}], "status": {"message": "OK", "code": 200}, "url": "https://api.reddit.com/api/register/.json"}, "recorded_at": "2015-04-15T15:43:48"}, {"request": {"body": {"string": "passwd=pass10&user=PyAPITestUser10&api_type=json&email=&passwd2=pass10", "encoding": "utf-8"}, "headers": {"Content-Length": ["70"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["PRAW_test_suite PRAW/3.0a1 Python/2.7.5 Darwin-13.4.0-x86_64-i386-64bit"], "Connection": ["keep-alive"], "Cookie": ["__cfduid=d903d312988ae272ff3dfad9531eee38c1429112625"], "Content-Type": ["application/x-www-form-urlencoded"]}, "method": "POST", "uri": "https://api.reddit.com/api/register/.json"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAAxzLQW4DIQxA0asgr4kExmaAc2RXVZWDQSRtQzsz6qLR3L1Kt//pP+C2zTsU84C2rnPdoJiXV2tAZZf/fG9N38a+fz2py8fWrIHPqUO2AcXAz+3qxvf+O2a6qCyxt6Vm8lkb9RSTQ9VKXmKLkn2uPVawBuqc79f2/ENi75nRovN8cnTyfHapUCgUrVRZFDFU5NAFuXOgiImUI+GFlDNLXCrCcRx/AAAA//8DAMxNY53LAAAA", "encoding": "UTF-8"}, "headers": {"x-xss-protection": ["1; mode=block"], "x-content-type-options": ["nosniff"], "content-encoding": ["gzip"], "transfer-encoding": ["chunked"], "set-cookie": ["reddit_session=38511552%2C2015-04-15T08%3A43%3A46%2Caca7d223c253fa25f5346284d5642b4d595a67c2; Domain=reddit.com; Path=/; HttpOnly, secure_session=; Domain=reddit.com; Max-Age=-1429112626; Path=/; expires=Thu, 01-Jan-1970 00:00:01 GMT; HttpOnly"], "server": ["cloudflare-nginx"], "connection": ["keep-alive"], "x-ua-compatible": ["IE=edge"], "pragma": ["no-cache"], "cache-control": ["no-cache, no-cache"], "date": ["Wed, 15 Apr 2015 15:43:46 GMT"], "x-frame-options": ["SAMEORIGIN"], "x-moose": ["majestic"], "content-type": ["application/json; charset=UTF-8"], "cf-ray": ["1d78c4983ccc0da3-SJC"]}, "cookies": [{"comment": null, "domain": ".reddit.com", "name": "reddit_session", "expires": null, "value": "38511552%2C2015-04-15T08%3A43%3A46%2Caca7d223c253fa25f5346284d5642b4d595a67c2", "version": 0, "rfc2109": false, "discard": true, "path": "/", "rest": {"HttpOnly": null}, "port": null, "comment_url": null, "secure": false}], "status": {"message": "OK", "code": 200}, "url": "https://api.reddit.com/api/register/.json"}, "recorded_at": "2015-04-15T15:43:48"}, {"request": {"body": {"string": "passwd=pass10&uh=vji0hqtzho8bda76fe7c9419de4f86802ddc41a6e6a919cf6c&user=PyAPITestUser10&api_type=json", "encoding": "utf-8"}, "headers": {"Content-Length": ["102"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["PRAW_test_suite PRAW/3.0a1 Python/2.7.5 Darwin-13.4.0-x86_64-i386-64bit"], "Connection": ["keep-alive"], "Content-Type": ["application/x-www-form-urlencoded"]}, "method": "POST", "uri": "https://api.reddit.com/api/login/.json"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAAxzLywrCMBBA0V8Js04hk8dkku9wJyJJJ1KfkbYLQfrvUrf3cL9wW/oLsvpCm+c+L5DV8aQVSFnLP79ak/O0ru+dLuWxNK3g2WUqywRZAdfHmvrM9sPJOC/FjBRNrAlrk0bsInpxJYpcSiN0owetYOz9fm377zgghmC1NRgG4wcMB8PZu+yjrpRI2IyVUyV0yMQShRK7QMFSQrHGCzJs2/YDAAD//wMAZ3CAlMsAAAA=", "encoding": "UTF-8"}, "headers": {"x-xss-protection": ["1; mode=block"], "x-content-type-options": ["nosniff"], "content-encoding": ["gzip"], "transfer-encoding": ["chunked"], "set-cookie": ["__cfduid=dfa55fb61e4657e66cc280f3263229a101429112626; expires=Thu, 14-Apr-16 15:43:46 GMT; path=/; domain=.reddit.com; HttpOnly, secure_session=; Domain=reddit.com; Max-Age=-1429112627; Path=/; expires=Thu, 01-Jan-1970 00:00:01 GMT; HttpOnly, reddit_session=38511552%2C2015-04-15T08%3A43%3A47%2Cb696d80cb89b6131868d7d69835652691d204d18; Domain=reddit.com; Path=/; HttpOnly"], "server": ["cloudflare-nginx"], "connection": ["keep-alive"], "x-ua-compatible": ["IE=edge"], "pragma": ["no-cache"], "cache-control": ["no-cache, no-cache"], "date": ["Wed, 15 Apr 2015 15:43:47 GMT"], "x-frame-options": ["SAMEORIGIN"], "x-moose": ["majestic"], "content-type": ["application/json; charset=UTF-8"], "cf-ray": ["1d78c49dfcd30da3-SJC"]}, "cookies": [{"comment": null, "domain": ".reddit.com", "name": "__cfduid", "expires": 1460648626, "value": "dfa55fb61e4657e66cc280f3263229a101429112626", "version": 0, "rfc2109": false, "discard": false, "path": "/", "rest": {"HttpOnly": null}, "port": null, "comment_url": null, "secure": false}, {"comment": null, "domain": ".reddit.com", "name": "reddit_session", "expires": null, "value": "38511552%2C2015-04-15T08%3A43%3A47%2Cb696d80cb89b6131868d7d69835652691d204d18", "version": 0, "rfc2109": false, "discard": true, "path": "/", "rest": {"HttpOnly": null}, "port": null, "comment_url": null, "secure": false}], "status": {"message": "OK", "code": 200}, "url": "https://api.reddit.com/api/login/.json"}, "recorded_at": "2015-04-15T15:43:49"}, {"request": {"body": {"string": "confirm=True&passwd=bad_pswd&delete_message=&uh=8blt9or82x89034da0c6707b91bede683714d3a7ddfae613c4&api_type=json&user=PyAPITestUser10", "encoding": "utf-8"}, "headers": {"Content-Length": ["133"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["PRAW_test_suite PRAW/3.0a1 Python/2.7.5 Darwin-13.4.0-x86_64-i386-64bit"], "Connection": ["keep-alive"], "Cookie": ["reddit_session=38511552%2C2015-04-15T08%3A43%3A47%2Cb696d80cb89b6131868d7d69835652691d204d18; __cfduid=dfa55fb61e4657e66cc280f3263229a101429112626"], "Content-Type": ["application/x-www-form-urlencoded"]}, "method": "POST", "uri": "https://api.reddit.com/api/delete_user.json"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA6pWyirOz1OyUqhWSi0qyi8qVrJSiI5WCg/y93OPD3AMDg73D3JR0lFQKi/Kz0tXKEgsLi7PL0oBiYDZKUqxsbW1AAAAAP//AwBL/fNsRgAAAA==", "encoding": "UTF-8"}, "headers": {"x-ratelimit-remaining": ["299"], "x-xss-protection": ["1; mode=block"], "x-content-type-options": ["nosniff"], "content-encoding": ["gzip"], "transfer-encoding": ["chunked"], "server": ["cloudflare-nginx"], "connection": ["keep-alive"], "x-ua-compatible": ["IE=edge"], "pragma": ["no-cache"], "cache-control": ["no-cache, no-cache"], "date": ["Wed, 15 Apr 2015 15:43:48 GMT"], "x-frame-options": ["SAMEORIGIN"], "x-moose": ["majestic"], "content-type": ["application/json; charset=UTF-8"], "cf-ray": ["1d78c4a3bcdb0da3-SJC"], "x-ratelimit-used": ["1"], "x-ratelimit-reset": ["372"]}, "status": {"message": "OK", "code": 200}, "url": "https://api.reddit.com/api/delete_user.json"}, "recorded_at": "2015-04-15T15:43:50"}, {"request": {"body": {"string": "confirm=True&passwd=pass10&delete_message=&uh=8blt9or82x89034da0c6707b91bede683714d3a7ddfae613c4&api_type=json&user=PyAPITestUser10", "encoding": "utf-8"}, "headers": {"Content-Length": ["131"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["PRAW_test_suite PRAW/3.0a1 Python/2.7.5 Darwin-13.4.0-x86_64-i386-64bit"], "Connection": ["keep-alive"], "Cookie": ["reddit_session=38511552%2C2015-04-15T08%3A43%3A47%2Cb696d80cb89b6131868d7d69835652691d204d18; __cfduid=dfa55fb61e4657e66cc280f3263229a101429112626"], "Content-Type": ["application/x-www-form-urlencoded"]}, "method": "POST", "uri": "https://api.reddit.com/api/delete_user.json"}, "response": {"body": {"string": "{\"json\": {\"errors\": []}}", "encoding": "UTF-8"}, "headers": {"content-length": ["24"], "x-xss-protection": ["1; mode=block"], "x-content-type-options": ["nosniff"], "x-ratelimit-remaining": ["298"], "server": ["cloudflare-nginx"], "connection": ["keep-alive"], "x-ua-compatible": ["IE=edge"], "pragma": ["no-cache"], "cache-control": ["no-cache, no-cache"], "date": ["Wed, 15 Apr 2015 15:43:49 GMT"], "x-frame-options": ["SAMEORIGIN"], "x-moose": ["majestic"], "content-type": ["application/json; charset=UTF-8"], "cf-ray": ["1d78c4a97cdf0da3-SJC"], "x-ratelimit-used": ["2"], "x-ratelimit-reset": ["372"]}, "status": {"message": "OK", "code": 200}, "url": "https://api.reddit.com/api/delete_user.json"}, "recorded_at": "2015-04-15T15:43:51"}, {"request": {"body": {"string": "passwd=pass10&uh=8blt9or82x89034da0c6707b91bede683714d3a7ddfae613c4&user=PyAPITestUser10&api_type=json", "encoding": "utf-8"}, "headers": {"Content-Length": ["102"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["PRAW_test_suite PRAW/3.0a1 Python/2.7.5 Darwin-13.4.0-x86_64-i386-64bit"], "Connection": ["keep-alive"], "Content-Type": ["application/x-www-form-urlencoded"]}, "method": "POST", "uri": "https://api.reddit.com/api/login/.json"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA6pWyirOz1OyUqhWSi0qyi8qVrJSiI5WCg/y93OPD3AMDg73D3JR0lFQKi/Kz0tXKEgsLi7PL0oBiYDZKUqxsbW1AAAAAP//AwBL/fNsRgAAAA==", "encoding": "UTF-8"}, "headers": {"x-xss-protection": ["1; mode=block"], "x-content-type-options": ["nosniff"], "content-encoding": ["gzip"], "transfer-encoding": ["chunked"], "set-cookie": ["__cfduid=dc226b6e3f03fdab3b84f494723d1f5cf1429112629; expires=Thu, 14-Apr-16 15:43:49 GMT; path=/; domain=.reddit.com; HttpOnly"], "server": ["cloudflare-nginx"], "connection": ["keep-alive"], "x-ua-compatible": ["IE=edge"], "cache-control": ["no-cache"], "date": ["Wed, 15 Apr 2015 15:43:49 GMT"], "x-frame-options": ["SAMEORIGIN"], "x-moose": ["majestic"], "content-type": ["application/json; charset=UTF-8"], "cf-ray": ["1d78c4ad5ceb0da3-SJC"]}, "cookies": [{"comment": null, "domain": ".reddit.com", "name": "__cfduid", "expires": 1460648629, "value": "dc226b6e3f03fdab3b84f494723d1f5cf1429112629", "version": 0, "rfc2109": false, "discard": false, "path": "/", "rest": {"HttpOnly": null}, "port": null, "comment_url": null, "secure": false}], "status": {"message": "OK", "code": 200}, "url": "https://api.reddit.com/api/login/.json"}, "recorded_at": "2015-04-15T15:43:51"}], "recorded_with": "betamax/0.4.1"}
1 change: 1 addition & 0 deletions tests/cassettes/test_create_subreddit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"http_interactions": [{"request": {"body": {"string": "passwd=1111&user=PyAPITestUser2&api_type=json", "encoding": "utf-8"}, "headers": {"Content-Length": ["45"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["PRAW_test_suite PRAW/3.0a1 Python/2.7.5 Darwin-13.4.0-x86_64-i386-64bit"], "Connection": ["keep-alive"], "Content-Type": ["application/x-www-form-urlencoded"]}, "method": "POST", "uri": "https://api.reddit.com/api/login/.json"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAAxzLSWoDMRBA0auIWssglaTScA7vQggaSrSnVmg1Ccb03YOz/Y//guscKyTxAt62sU1I4uNTCmh5z/95ZW5fy75/v6nn+2Qp4DHakucCScDPZX3+PmmdI2pXKppse/aMFMhodLV0jZVrj70wmRJtBCmgjnG78Pv3RmEgL1Fpd1L2pN1ZhWQoWZShmtC52BAYnWlEOYaGlnzFGH3WLfeOyiIcx/EHAAD//wMAgQYUsMoAAAA=", "encoding": "UTF-8"}, "headers": {"x-xss-protection": ["1; mode=block"], "x-content-type-options": ["nosniff"], "content-encoding": ["gzip"], "transfer-encoding": ["chunked"], "set-cookie": ["__cfduid=d0a1424abb79199319b4767b11da36b5a1429112201; expires=Thu, 14-Apr-16 15:36:41 GMT; path=/; domain=.reddit.com; HttpOnly, secure_session=; Domain=reddit.com; Max-Age=-1429112202; Path=/; expires=Thu, 01-Jan-1970 00:00:01 GMT; HttpOnly, reddit_session=7302867%2C2015-04-15T08%3A36%3A42%2C8c38feb488e253d66a98d2467c2997a1daff2042; Domain=reddit.com; Path=/; HttpOnly"], "server": ["cloudflare-nginx"], "connection": ["keep-alive"], "x-ua-compatible": ["IE=edge"], "pragma": ["no-cache"], "cache-control": ["no-cache, no-cache"], "date": ["Wed, 15 Apr 2015 15:36:42 GMT"], "x-frame-options": ["SAMEORIGIN"], "x-moose": ["majestic"], "content-type": ["application/json; charset=UTF-8"], "cf-ray": ["1d78ba3b9175012a-SJC"]}, "cookies": [{"comment": null, "domain": ".reddit.com", "name": "__cfduid", "expires": 1460648201, "value": "d0a1424abb79199319b4767b11da36b5a1429112201", "version": 0, "rfc2109": false, "discard": false, "path": "/", "rest": {"HttpOnly": null}, "port": null, "comment_url": null, "secure": false}, {"comment": null, "domain": ".reddit.com", "name": "reddit_session", "expires": null, "value": "7302867%2C2015-04-15T08%3A36%3A42%2C8c38feb488e253d66a98d2467c2997a1daff2042", "version": 0, "rfc2109": false, "discard": true, "path": "/", "rest": {"HttpOnly": null}, "port": null, "comment_url": null, "secure": false}], "status": {"message": "OK", "code": 200}, "url": "https://api.reddit.com/api/login/.json"}, "recorded_at": "2015-04-15T15:36:44"}, {"request": {"body": {"string": "domain=&description=&show_media=off&lang=en&name=reddit_api_test&title=PRAW+test_create_subreddit&wikimode=disabled&allow_top=on&over_18=off&uh=vinywy6nso915bc23a4fa7e26863125cbf12cecf9fbe63b949&type=public&link_type=any&api_type=json", "encoding": "utf-8"}, "headers": {"Content-Length": ["234"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["PRAW_test_suite PRAW/3.0a1 Python/2.7.5 Darwin-13.4.0-x86_64-i386-64bit"], "Connection": ["keep-alive"], "Cookie": ["reddit_session=7302867%2C2015-04-15T08%3A36%3A42%2C8c38feb488e253d66a98d2467c2997a1daff2042; __cfduid=d0a1424abb79199319b4767b11da36b5a1429112201"], "Content-Type": ["application/x-www-form-urlencoded"]}, "method": "POST", "uri": "https://api.reddit.com/api/site_admin/.json"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA6pWyirOz1OyUqhWSi0qyi8qVrJSiI5WCg51CnJ1cfEMiXeN8AwOCVbSUVAqyUgsUSguTSpKTUnJLFFIzClKTUypVEityCwuKQYpyEvMTVWKja2tBQAAAP//AwCk09WhVQAAAA==", "encoding": "UTF-8"}, "headers": {"x-ratelimit-remaining": ["297"], "x-xss-protection": ["1; mode=block"], "x-content-type-options": ["nosniff"], "content-encoding": ["gzip"], "transfer-encoding": ["chunked"], "server": ["cloudflare-nginx"], "connection": ["keep-alive"], "x-ua-compatible": ["IE=edge"], "pragma": ["no-cache"], "cache-control": ["no-cache, no-cache"], "date": ["Wed, 15 Apr 2015 15:36:42 GMT"], "x-frame-options": ["SAMEORIGIN"], "x-moose": ["majestic"], "content-type": ["application/json; charset=UTF-8"], "cf-ray": ["1d78ba4081b2012a-SJC"], "x-ratelimit-used": ["3"], "x-ratelimit-reset": ["198"]}, "status": {"message": "OK", "code": 200}, "url": "https://api.reddit.com/api/site_admin/.json"}, "recorded_at": "2015-04-15T15:36:45"}, {"request": {"body": {"string": "domain=&description=PRAW+test_create_subreddit&show_media=off&lang=en&name=PRAW_vinywy6nso&title=The+PRAW_vinywy6nso&wikimode=disabled&allow_top=on&over_18=off&uh=vinywy6nso915bc23a4fa7e26863125cbf12cecf9fbe63b949&type=public&link_type=any&api_type=json", "encoding": "utf-8"}, "headers": {"Content-Length": ["253"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["PRAW_test_suite PRAW/3.0a1 Python/2.7.5 Darwin-13.4.0-x86_64-i386-64bit"], "Connection": ["keep-alive"], "Cookie": ["reddit_session=7302867%2C2015-04-15T08%3A36%3A42%2C8c38feb488e253d66a98d2467c2997a1daff2042; __cfduid=d0a1424abb79199319b4767b11da36b5a1429112201"], "Content-Type": ["application/x-www-form-urlencoded"]}, "method": "POST", "uri": "https://api.reddit.com/api/site_admin/.json"}, "response": {"body": {"string": "{\"json\": {\"errors\": []}}", "encoding": "UTF-8"}, "headers": {"content-length": ["24"], "x-xss-protection": ["1; mode=block"], "x-content-type-options": ["nosniff"], "x-ratelimit-remaining": ["296"], "server": ["cloudflare-nginx"], "connection": ["keep-alive"], "x-ua-compatible": ["IE=edge"], "pragma": ["no-cache"], "cache-control": ["no-cache, no-cache"], "date": ["Wed, 15 Apr 2015 15:36:43 GMT"], "x-frame-options": ["SAMEORIGIN"], "x-moose": ["majestic"], "content-type": ["application/json; charset=UTF-8"], "cf-ray": ["1d78ba4451d7012a-SJC"], "x-ratelimit-used": ["4"], "x-ratelimit-reset": ["197"]}, "status": {"message": "OK", "code": 200}, "url": "https://api.reddit.com/api/site_admin/.json"}, "recorded_at": "2015-04-15T15:36:45"}], "recorded_with": "betamax/0.4.1"}
10 changes: 0 additions & 10 deletions tests/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,16 +152,6 @@ def interactive_only_function(obj):
return interactive_only_function


def local_only(function):
@wraps(function)
def local_only_function(obj):
if not obj.r.config.is_reddit:
return function(obj)
print('Passing local only test: {0}.{1}'
.format(obj.__class__.__name__, function.__name__))
return local_only_function


def prompt(msg):
sys.stdout.write(msg)
sys.stdout.flush()
Expand Down

0 comments on commit d7cdc76

Please sign in to comment.