mirror of https://github.com/scrapy/scrapy.git
spelling: nonexistent
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
5f33a64a02
commit
a839b61147
|
|
@ -150,7 +150,7 @@ class CrawlTestCase(TestCase):
|
|||
raise unittest.SkipTest("Non-existing hosts are resolvable")
|
||||
crawler = get_crawler(SimpleSpider)
|
||||
with LogCapture() as log:
|
||||
# try to fetch the homepage of a non-existent domain
|
||||
# try to fetch the homepage of a nonexistent domain
|
||||
yield crawler.crawl("http://dns.resolution.invalid./", mockserver=self.mockserver)
|
||||
self._assert_retried(log)
|
||||
|
||||
|
|
|
|||
|
|
@ -1050,8 +1050,8 @@ class BaseFTPTestCase(unittest.TestCase):
|
|||
|
||||
return self._add_test_callbacks(d, _test)
|
||||
|
||||
def test_ftp_download_notexist(self):
|
||||
request = Request(url=f"ftp://127.0.0.1:{self.portNum}/notexist.txt",
|
||||
def test_ftp_download_nonexistent(self):
|
||||
request = Request(url=f"ftp://127.0.0.1:{self.portNum}/nonexistent.txt",
|
||||
meta=self.req_meta)
|
||||
d = self.download_handler.download_request(request, None)
|
||||
|
||||
|
|
|
|||
|
|
@ -873,7 +873,7 @@ class FormRequestTest(RequestTest):
|
|||
fs = _qs(r1)
|
||||
self.assertEqual(fs, {b'four': [b'4'], b'three': [b'3']})
|
||||
|
||||
def test_from_response_formname_notexist(self):
|
||||
def test_from_response_formname_nonexistent(self):
|
||||
response = _buildresponse(
|
||||
"""<form name="form1" action="post.php" method="POST">
|
||||
<input type="hidden" name="one" value="1">
|
||||
|
|
@ -912,7 +912,7 @@ class FormRequestTest(RequestTest):
|
|||
fs = _qs(r1)
|
||||
self.assertEqual(fs, {b'four': [b'4'], b'three': [b'3']})
|
||||
|
||||
def test_from_response_formname_notexists_fallback_formid(self):
|
||||
def test_from_response_formname_nonexistent_fallback_formid(self):
|
||||
response = _buildresponse(
|
||||
"""<form action="post.php" method="POST">
|
||||
<input type="hidden" name="one" value="1">
|
||||
|
|
@ -927,7 +927,7 @@ class FormRequestTest(RequestTest):
|
|||
fs = _qs(r1)
|
||||
self.assertEqual(fs, {b'four': [b'4'], b'three': [b'3']})
|
||||
|
||||
def test_from_response_formid_notexist(self):
|
||||
def test_from_response_formid_nonexistent(self):
|
||||
response = _buildresponse(
|
||||
"""<form id="form1" action="post.php" method="POST">
|
||||
<input type="hidden" name="one" value="1">
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ class UtilsPythonTestCase(unittest.TestCase):
|
|||
b = Obj()
|
||||
# no attributes given return False
|
||||
self.assertFalse(equal_attributes(a, b, []))
|
||||
# not existent attributes
|
||||
# nonexistent attributes
|
||||
self.assertFalse(equal_attributes(a, b, ['x', 'y']))
|
||||
|
||||
a.x = 1
|
||||
|
|
|
|||
Loading…
Reference in New Issue