mirror of
https://github.com/beetbox/beets.git
synced 2026-01-30 20:13:37 +01:00
use timecop for MusicBrainz error-catching tests
This commit is contained in:
parent
ecf2da1b6f
commit
ecdcd1e1bf
1 changed files with 5 additions and 0 deletions
|
|
@ -72,6 +72,11 @@ def raise_func(exc):
|
|||
class MBQueryErrorTest(unittest.TestCase):
|
||||
def setUp(self):
|
||||
mb.last_query_time = 0.0
|
||||
self.cop = _common.Timecop()
|
||||
self.cop.install()
|
||||
|
||||
def tearDown(self):
|
||||
self.cop.restore()
|
||||
|
||||
def test_503_error_retries(self):
|
||||
exc = mbws.WebServiceError(reason=Exception('Error 503'))
|
||||
|
|
|
|||
Loading…
Reference in a new issue