Skip to content

Commit 1521436

Browse files
Copilotjaraco
andauthored
Fix ruff import sorting issues in tests
Agent-Logs-Url: https://github.com/jaraco/cssutils/sessions/f9e8a847-4ef7-4f19-9ffd-12627fa6be2e Co-authored-by: jaraco <308610+jaraco@users.noreply.github.com>
1 parent eee6fac commit 1521436

24 files changed

Lines changed: 30 additions & 47 deletions

tests/basetest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
import pathlib
44

5-
import cssutils
65
import pytest
76

7+
import cssutils
8+
89

910
def get_sheet_filename(sheet_name):
1011
"""Get the filename for the given sheet."""

tests/test_csscharsetrule.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
import xml.dom
44

55
import pytest
6+
import test_cssrule
67

78
import cssutils.css
89

9-
import test_cssrule
10-
1110

1211
class TestCSSCharsetRule(test_cssrule.TestCSSRule):
1312
def _setup_rule(self):

tests/test_csscomment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
import xml
44

5-
import cssutils.css
6-
75
import test_cssrule
86

7+
import cssutils.css
8+
99

1010
class TestCSSComment(test_cssrule.TestCSSRule):
1111
def _setup_rule(self):

tests/test_cssimportrule.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
import xml.dom
55

66
import pytest
7+
import test_cssrule
78

89
import cssutils
910

10-
import test_cssrule
11-
1211

1312
class TestCSSImportRule(test_cssrule.TestCSSRule):
1413
def _setup_rule(self):

tests/test_cssnamespacerule.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
import xml.dom
44

55
import pytest
6+
import test_cssrule
67

78
import cssutils
89

9-
import test_cssrule
10-
1110

1211
class TestCSSNamespaceRule(test_cssrule.TestCSSRule):
1312
def _setup_rule(self):

tests/test_csspagerule.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
import xml.dom
44

55
import pytest
6+
import test_cssrule
67

78
import cssutils
89

9-
import test_cssrule
10-
1110

1211
class TestCSSPageRule(test_cssrule.TestCSSRule):
1312
def _setup_rule(self):

tests/test_cssrule.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
import xml.dom
44

5+
import basetest
56
import pytest
67

78
import cssutils.css
89

9-
import basetest
10-
1110

1211
class TestCSSRule(basetest.BaseTestCase):
1312
"""

tests/test_cssstyledeclaration.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
import xml.dom
44

5+
import basetest
56
import pytest
67

78
import cssutils
89

9-
import basetest
10-
1110

1211
class TestCSSStyleDeclaration(basetest.BaseTestCase):
1312
def setup_method(self):

tests/test_cssstylerule.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
import xml.dom
44

55
import pytest
6+
import test_cssrule
67

78
import cssutils
89

9-
import test_cssrule
10-
1110

1211
class TestCSSStyleRule(test_cssrule.TestCSSRule):
1312
def _setup_rule(self):

tests/test_cssstylesheet.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
import xml.dom
44

5+
import basetest
56
import pytest
67

78
import cssutils.css
89

9-
import basetest
10-
1110

1211
class TestCSSStyleSheet(basetest.BaseTestCase):
1312
def setup_method(self):

0 commit comments

Comments
 (0)