Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
sadym-chromium committed Dec 6, 2024
1 parent 4e3f784 commit 7eb8d6d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions tools/lint/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,12 +568,12 @@ def is_query_string_correct(script: Text, src: Text,

if not is_path_correct("testharness.js",
src) or not is_query_string_correct(
"testharness.js", src):
"testharness.js", src):
errors.append(rules.TestharnessPath.error(path))

if not is_path_correct("testharnessreport.js",
src) or not is_query_string_correct(
"testharnessreport.js", src):
"testharnessreport.js", src):
errors.append(rules.TestharnessReportPath.error(path))

if not is_path_correct("testdriver.js", src):
Expand All @@ -584,7 +584,7 @@ def is_query_string_correct(script: Text, src: Text,

if not is_path_correct("testdriver-vendor.js",
src) or not is_query_string_correct(
"testdriver-vendor.js", src):
"testdriver-vendor.js", src):
errors.append(rules.TestdriverVendorPath.error(path))

script_path = None
Expand Down
2 changes: 1 addition & 1 deletion tools/lint/tests/test_file_lints.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ def test_testdriver_multiple_vendor_features():
check_errors(errors)

if kind == "web-lax":
assert errors == [ ]
assert errors == []
elif kind == "python":
assert errors == [
('PARSE-FAILED', 'Unable to parse file', filename, 2),
Expand Down
3 changes: 1 addition & 2 deletions tools/manifest/sourcefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from io import BytesIO
from typing import (Any, BinaryIO, Callable, Deque, Dict, Iterable, List,
Optional, Pattern, Set, Text, Tuple, TypedDict, Union, cast)
from urllib.parse import urlparse, parse_qs, urljoin
from urllib.parse import parse_qs, urlparse, urljoin

try:
from xml.etree import cElementTree as ElementTree
Expand Down Expand Up @@ -757,7 +757,6 @@ def ___get_testdriver_include_path(self):

return None


@cached_property
def testdriver_features(self) -> Optional[Text]:
"""
Expand Down
3 changes: 2 additions & 1 deletion tools/manifest/tests/test_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,8 @@ def test_update_from_json_modified():
testdriver_features = ['feature_1', 'feature_2']

# Update timeout, pac and testdriver_features
s2 = SourceFileWithTest("test1", "1" * 40, item.TestharnessTest, timeout="long", pac="proxy.pac",
s2 = SourceFileWithTest("test1", "1" * 40, item.TestharnessTest,
timeout="long", pac="proxy.pac",
testdriver_features=testdriver_features)
tree, sourcefile_mock = tree_and_sourcefile_mocks([(s2, None, True)])
with mock.patch("tools.manifest.manifest.SourceFile", side_effect=sourcefile_mock):
Expand Down

0 comments on commit 7eb8d6d

Please sign in to comment.