Remove unnecessary commas before closing brackets in tests/

This commit is contained in:
Chris Mayo 2020-05-29 19:40:46 +01:00
parent 87039913b2
commit be53c4a659
2 changed files with 7 additions and 7 deletions

View file

@ -31,7 +31,7 @@ class TestUrlQueue(unittest.TestCase):
self.urldata1 = UrlData(
url="Foo",
cache_url="Foo",
aggregate=Aggregate(result_cache=self.result_cache,),
aggregate=Aggregate(result_cache=self.result_cache),
has_result=True,
)
@ -84,7 +84,7 @@ class TestUrlQueue(unittest.TestCase):
urldata = UrlData(
url="Bar",
cache_url="Bar",
aggregate=Aggregate(result_cache=self.result_cache,),
aggregate=Aggregate(result_cache=self.result_cache),
has_result=False,
)
self.urlqueue.put(urldata)
@ -102,7 +102,7 @@ class TestUrlQueue(unittest.TestCase):
urldata = UrlData(
url="Bar",
cache_url="Bar",
aggregate=Aggregate(result_cache=self.result_cache,),
aggregate=Aggregate(result_cache=self.result_cache),
has_result=True,
)
self.urlqueue.put(urldata)
@ -120,7 +120,7 @@ class TestUrlQueue(unittest.TestCase):
urldata = UrlData(
url="Bar",
cache_url="Foo",
aggregate=Aggregate(result_cache=self.result_cache,),
aggregate=Aggregate(result_cache=self.result_cache),
has_result=True,
)
self.urlqueue.put(urldata)
@ -141,7 +141,7 @@ class TestUrlQueue(unittest.TestCase):
UrlData(
url="Bar",
cache_url="Bar address %s" % i,
aggregate=Aggregate(result_cache=self.result_cache,),
aggregate=Aggregate(result_cache=self.result_cache),
has_result=False,
),
)
@ -149,7 +149,7 @@ class TestUrlQueue(unittest.TestCase):
urldata = UrlData(
url="Bar",
cache_url="Bar address",
aggregate=Aggregate(result_cache=self.result_cache,),
aggregate=Aggregate(result_cache=self.result_cache),
has_result=False,
)
self.result_cache.add_result("Bar address 2", "asdf")

View file

@ -55,7 +55,7 @@ class TestHttpbin(LinkCheckTest):
password = "testpassword"
url = get_httpbin_url("/basic-auth/%s/%s" % (user, password))
nurl = self.norm(url)
entry = dict(user=user, password=password, pattern=re.compile(r".*"),)
entry = dict(user=user, password=password, pattern=re.compile(r".*"))
confargs = dict(authentication=[entry])
resultlines = [
"url %s" % url,