Skip to content

Commit

Permalink
skip tests using internet
Browse files Browse the repository at this point in the history
  • Loading branch information
Q-back committed Sep 21, 2020
1 parent e9b5713 commit fafed41
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from w3af.core.controllers.chrome.crawler.tests.base import BaseChromeCrawlerTest


@pytest.mark.skip('uses internet')
class ReactBasicTest(BaseChromeCrawlerTest):
def test_react_hello_world_app(self):
url = 'http://react-hello-world-app.surge.sh/'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@
along with w3af; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
import pytest

from w3af.core.controllers.chrome.crawler.tests.base import BaseChromeCrawlerTest


class ReactBasicTest(BaseChromeCrawlerTest):
@pytest.mark.skip('uses internet')
def test_vue_todo_list(self):
url = 'http://vue-todo-test.surge.sh'
found_uris = self._crawl(url)
Expand Down
2 changes: 1 addition & 1 deletion w3af/core/controllers/misc/tests/test_is_private_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ def test_is_private_site_true_case03(self):
def test_is_private_site_false_case01(self):
self.assertFalse(is_private_site('192.1.0.1'))

@pytest.mark.skip('uses internet')
def test_is_private_site_false_case02(self):
self.assertFalse(is_private_site('www.w3af.org'))

4 changes: 3 additions & 1 deletion w3af/core/data/url/handlers/tests/test_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import urllib2
import unittest

import pytest
from mock import patch, Mock, _Call

from w3af.core.data.url.HTTPRequest import HTTPRequest
Expand Down Expand Up @@ -93,6 +94,7 @@ def test_no_cache(self):


class CacheIntegrationTest(unittest.TestCase):
@pytest.mark.skip('uses internet')
def test_cache_http_errors(self):
settings = opener_settings.OpenerSettings()
settings.build_openers()
Expand Down Expand Up @@ -135,4 +137,4 @@ def read(self):
return self.body

def info(self):
return self.headers
return self.headers
1 change: 1 addition & 0 deletions w3af/plugins/tests/grep/test_retirejs.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ def test_version_check(self):
rjs = retirejs()
self.assertTrue(rjs._get_is_valid_retire_version())

@pytest.mark.skip('uses internet')
def test_retire_smoke_test(self):
rjs = retirejs()
self.assertTrue(rjs._retire_smoke_test())

0 comments on commit fafed41

Please sign in to comment.