Skip to content

Commit 9868375

Browse files
committed
Fix sort_keys test
1 parent ccf9853 commit 9868375

33 files changed

Lines changed: 180 additions & 179 deletions

File tree

tests/test_dict2css.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,6 @@ def test_dumps(
100100
"html": {"scroll-behavior": "smooth"},
101101
}
102102

103-
# TODO
104-
sort_keys = False
105-
106103
css = dumps(
107104
stylesheet,
108105
indent=indent,
@@ -122,6 +119,8 @@ def test_dumps(
122119
indent=indent,
123120
trailing_semicolon=trailing_semicolon,
124121
indent_closing_brace=indent_closing_brace,
122+
check_circular=check_circular,
123+
sort_keys=sort_keys,
125124
)
126125

127126
advanced_file_regression.check_file(output_file)
@@ -132,6 +131,8 @@ def test_dumps(
132131
indent=indent,
133132
trailing_semicolon=trailing_semicolon,
134133
indent_closing_brace=indent_closing_brace,
134+
check_circular=check_circular,
135+
sort_keys=sort_keys,
135136
)
136137

137138
advanced_file_regression.check_file(output_file)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.wy-nav-content {max-width: 1200rem !important; z-index: 999}
2-
li p:last-child {margin-bottom: 12em !important; margin-top: 6em; font-size: 14px; line-height: 1.5; font-weight: 800 !important}
32
html {scroll-behavior: smooth}
3+
li p:last-child {font-size: 14px; font-weight: 800 !important; line-height: 1.5; margin-bottom: 12em !important; margin-top: 6em}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.wy-nav-content {max-width: 1200rem !important; z-index: 999}
2-
li p:last-child {margin-bottom: 12em !important; margin-top: 6em; font-size: 14px; line-height: 1.5; font-weight: 800 !important}
32
html {scroll-behavior: smooth}
3+
li p:last-child {font-size: 14px; font-weight: 800 !important; line-height: 1.5; margin-bottom: 12em !important; margin-top: 6em}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.wy-nav-content {max-width: 1200rem !important; z-index: 999; }
2-
li p:last-child {margin-bottom: 12em !important; margin-top: 6em; font-size: 14px; line-height: 1.5; font-weight: 800 !important; }
32
html {scroll-behavior: smooth; }
3+
li p:last-child {font-size: 14px; font-weight: 800 !important; line-height: 1.5; margin-bottom: 12em !important; margin-top: 6em; }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.wy-nav-content {max-width: 1200rem !important; z-index: 999; }
2-
li p:last-child {margin-bottom: 12em !important; margin-top: 6em; font-size: 14px; line-height: 1.5; font-weight: 800 !important; }
32
html {scroll-behavior: smooth; }
3+
li p:last-child {font-size: 14px; font-weight: 800 !important; line-height: 1.5; margin-bottom: 12em !important; margin-top: 6em; }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.wy-nav-content {max-width: 1200rem !important; z-index: 999}
2-
li p:last-child {margin-bottom: 12em !important; margin-top: 6em; font-size: 14px; line-height: 1.5; font-weight: 800 !important}
32
html {scroll-behavior: smooth}
3+
li p:last-child {font-size: 14px; font-weight: 800 !important; line-height: 1.5; margin-bottom: 12em !important; margin-top: 6em}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.wy-nav-content {max-width: 1200rem !important; z-index: 999}
2-
li p:last-child {margin-bottom: 12em !important; margin-top: 6em; font-size: 14px; line-height: 1.5; font-weight: 800 !important}
32
html {scroll-behavior: smooth}
3+
li p:last-child {font-size: 14px; font-weight: 800 !important; line-height: 1.5; margin-bottom: 12em !important; margin-top: 6em}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.wy-nav-content {max-width: 1200rem !important; z-index: 999; }
2-
li p:last-child {margin-bottom: 12em !important; margin-top: 6em; font-size: 14px; line-height: 1.5; font-weight: 800 !important; }
32
html {scroll-behavior: smooth; }
3+
li p:last-child {font-size: 14px; font-weight: 800 !important; line-height: 1.5; margin-bottom: 12em !important; margin-top: 6em; }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.wy-nav-content {max-width: 1200rem !important; z-index: 999; }
2-
li p:last-child {margin-bottom: 12em !important; margin-top: 6em; font-size: 14px; line-height: 1.5; font-weight: 800 !important; }
32
html {scroll-behavior: smooth; }
3+
li p:last-child {font-size: 14px; font-weight: 800 !important; line-height: 1.5; margin-bottom: 12em !important; margin-top: 6em; }

tests/test_dict2css_/test_dumps_2_indent_closing_brace_not_trailing_semicolon_sort_keys_check_circular_.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
z-index: 999
44
}
55

6+
html {
7+
scroll-behavior: smooth
8+
}
9+
610
li p:last-child {
7-
margin-bottom: 12em !important;
8-
margin-top: 6em;
911
font-size: 14px;
12+
font-weight: 800 !important;
1013
line-height: 1.5;
11-
font-weight: 800 !important
12-
}
13-
14-
html {
15-
scroll-behavior: smooth
14+
margin-bottom: 12em !important;
15+
margin-top: 6em
1616
}

0 commit comments

Comments
 (0)