Skip to content

Commit 22da903

Browse files
committed
Lint fixes
1 parent a520e8a commit 22da903

5 files changed

Lines changed: 15 additions & 10 deletions

File tree

src/SeleniumLibrary/entry/__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def cli():
4141
"""
4242
pass
4343

44+
4445
@cli.command()
4546
@click.argument(
4647
"filename",

src/SeleniumLibrary/entry/get_versions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ def get_version():
4343
python_version = (
4444
f"{sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro}"
4545
)
46-
#print(f"Used Python is: {sys.executable}\nVersion: {python_version}")
47-
#print(f'Robot Framework version: "{get_rf_version()}"')
46+
# print(f"Used Python is: {sys.executable}\nVersion: {python_version}")
47+
# print(f'Robot Framework version: "{get_rf_version()}"')
4848

4949
return (
5050
f"\nUsed Python is: {sys.executable}\n\tVersion: {python_version}\n"

src/SeleniumLibrary/entry/translation.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@
3333
)
3434

3535

36-
def get_library_translaton(
37-
plugings: Optional[str] = None
38-
) -> dict:
36+
def get_library_translaton(plugings: Optional[str] = None) -> dict:
3937
from SeleniumLibrary import SeleniumLibrary
4038

4139
selib = SeleniumLibrary(plugins=plugings)
@@ -121,4 +119,4 @@ def compare_translatoin(filename: Path, library_translation: dict):
121119

122120
table = _get_heading(max_kw_lenght)
123121
table.extend(table_body)
124-
return table
122+
return table

utest/test/entry/test_entry_point.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
from approvaltests import verify_all
66

77
from SeleniumLibrary.entry.get_versions import get_version
8-
from SeleniumLibrary.entry.translation import compare_translatoin, get_library_translaton
8+
from SeleniumLibrary.entry.translation import (
9+
compare_translatoin,
10+
get_library_translaton,
11+
)
912

1013

1114
def test_version():
@@ -17,8 +20,8 @@ def test_version():
1720
assert "Used Python is: " in lines[1], lines[1]
1821
assert python_version in lines[2], lines[2]
1922
assert 'Robot Framework version: "' in lines[3], lines[3]
20-
assert 'Installed SeleniumLibrary version is: ' in lines[4], lines[4]
21-
assert 'Installed selenium version is: ' in lines[5], lines[5]
23+
assert "Installed SeleniumLibrary version is: " in lines[4], lines[4]
24+
assert "Installed selenium version is: " in lines[5], lines[5]
2225

2326

2427
def test_get_translation():
@@ -28,6 +31,7 @@ def test_get_translation():
2831
assert item["doc"], item["doc"]
2932
assert item["sha256"], item["sha256"]
3033

34+
3135
def test_compare_translation(tmp_path: Path):
3236
translation = tmp_path / "translation.json"
3337
data = get_library_translaton()

utest/test/translation/test_translation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ def test_translation(sl: SeleniumLibrary):
1717
spec = sl.keywords_spec["__init__"]
1818
assert spec.argument_specification
1919
doc: str = spec.documentation
20-
assert doc.startswith("1 SeleniumLibrary is a web testing library for Robot Framework")
20+
assert doc.startswith(
21+
"1 SeleniumLibrary is a web testing library for Robot Framework"
22+
)
2123

2224
spec = sl.keywords_spec["hallinnoi_hälytys"]
2325
doc: str = spec.documentation

0 commit comments

Comments
 (0)