1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
From 1c4a97b30b3d3138e14680426fbfba3bac6ad635 Mon Sep 17 00:00:00 2001
From: Alastair Porter <alastair@porter.net.nz>
Date: Fri, 2 Dec 2016 22:17:56 +0100
Subject: Disable rate limiting in test_requests
Signed-off-by: Alastair Porter <alastair@porter.net.nz>
---
test/test_requests.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/test/test_requests.py b/test/test_requests.py
index 298a24d..dd474f9 100644
--- a/test/test_requests.py
+++ b/test/test_requests.py
@@ -14,6 +14,11 @@ class ArgumentTest(unittest.TestCase):
def setUp(self):
self.opener = _common.FakeOpener("<response/>")
musicbrainzngs.compat.build_opener = lambda *args: self.opener
+ self.orig_do_rate_limit = musicbrainz.do_rate_limit
+ musicbrainz.do_rate_limit = False
+
+ def tearDown(self):
+ musicbrainz.do_rate_limit = self.orig_do_rate_limit
def test_no_client(self):
musicbrainzngs.set_useragent("testapp", "0.1", "test@example.org")
|