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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
From: Dmitry Shachnev <mitya57@gmail.com>
Date: Mon, 14 Dec 2015 19:21:41 +0300
Subject: Skip a test that requires access to www.google.com.
---
tests/test_getimagesize.py | 1 +
tests/test_imagesize.py | 2 ++
tests/test_textile.py | 1 +
3 files changed, 4 insertions(+)
diff --git a/tests/test_getimagesize.py b/tests/test_getimagesize.py
index 43f85e3..8b2e1a9 100644
--- a/tests/test_getimagesize.py
+++ b/tests/test_getimagesize.py
@@ -3,6 +3,7 @@ import pytest
PIL = pytest.importorskip('PIL')
+@pytest.mark.skip(reason="Requires network access")
def test_imagesize():
assert getimagesize("http://www.google.com/intl/en_ALL/images/logo.gif") == (276, 110)
assert getimagesize("http://bad.domain/") == ''
diff --git a/tests/test_imagesize.py b/tests/test_imagesize.py
index 112989e..c953857 100644
--- a/tests/test_imagesize.py
+++ b/tests/test_imagesize.py
@@ -1,5 +1,7 @@
import textile
+import pytest
+@pytest.mark.skip("Requires network access")
def test_imagesize():
imgurl = 'http://www.google.com/intl/en_ALL/images/srpr/logo1w.png'
result = textile.tools.imagesize.getimagesize(imgurl)
diff --git a/tests/test_textile.py b/tests/test_textile.py
index 86a7d85..29dc173 100644
--- a/tests/test_textile.py
+++ b/tests/test_textile.py
@@ -80,6 +80,7 @@ def test_sanitize():
expect = textile.Textile(html_type='html5').parse(test, sanitize=True)
assert result == expect
+@pytest.mark.skip("Requires network access")
def test_imagesize():
PIL = pytest.importorskip('PIL')
|