Skip to content

Commit 204bad3

Browse files
Copilotjaraco
andauthored
Run ruff format to fix linter errors
Agent-Logs-Url: https://github.com/jaraco/cssutils/sessions/662c6470-9068-482c-801d-b50dea6088a7 Co-authored-by: jaraco <308610+jaraco@users.noreply.github.com>
1 parent fb44c97 commit 204bad3

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

tests/test_cssimportrule.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,7 @@ def fetcher(url):
361361
assert ir2.styleSheet.media.mediaText == 'all'
362362
assert ir2.styleSheet.parentStyleSheet is None # ir.styleSheet
363363
assert ir2.styleSheet.title == 'title2'
364-
assert (
365-
ir2.styleSheet.cssText == '@charset "ascii";\na {\n color: red\n }'
366-
)
364+
assert ir2.styleSheet.cssText == '@charset "ascii";\na {\n color: red\n }'
367365

368366
sheet = cssutils.parseString('@import "CANNOT-FIND.css";')
369367
ir = sheet.cssRules[0]

tests/test_parse.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,7 @@ def test_parseUrl(self):
116116
assert sheet1.cssText == cssText
117117
assert sheet2.encoding == override
118118
if sheet1.cssText and cssText.startswith('@charset'):
119-
assert sheet2.cssText == (
120-
cssText.replace('ascii', override)
121-
)
119+
assert sheet2.cssText == (cssText.replace('ascii', override))
122120
elif sheet1.cssText:
123121
assert sheet2.cssText == (overrideprefix + '\n' + cssText)
124122
else:

0 commit comments

Comments
 (0)