Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: tests/test_web_source.py

Issue 29465720: Issue 4970 - Document the library API of python-abp (Closed)
Patch Set: Rebase to match the new master and retouche the docstrings. Created Oct. 24, 2017, 4:06 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/test_web_source.py
===================================================================
--- a/tests/test_web_source.py
+++ b/tests/test_web_source.py
@@ -20,17 +20,17 @@
try:
from StringIO import StringIO
from urllib2 import HTTPError
except ImportError: # The modules were renamed/moved in Python 3.
from io import BytesIO as StringIO
from urllib.error import HTTPError
-from abp.filters import WebSource, NotFound
+from abp.filters.sources import WebSource, NotFound
@pytest.fixture
def web_mock(request):
"""Replace urlopen with our test implementation."""
patcher = mock.patch('abp.filters.sources.urlopen')
ret = patcher.start()
request.addfinalizer(patcher.stop)
« tests/test_render_script.py ('K') | « tests/test_render_script.py ('k') | tox.ini » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld