Skip to content

Commit 964bcf1

Browse files
timgates42tim-schilling
authored andcommitted
docs: Fix a few typos
There are small typos in: - debug_toolbar/panels/sql/utils.py - tests/panels/test_sql.py Fixes: - Should read `prettify` rather than `prettyify`. - Should read `contrasting` rather than `constrasting`.
1 parent 597cb08 commit 964bcf1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

debug_toolbar/panels/sql/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def simplify(sql):
6969

7070
def contrasting_color_generator():
7171
"""
72-
Generate constrasting colors by varying most significant bit of RGB first,
72+
Generate contrasting colors by varying most significant bit of RGB first,
7373
and then vary subsequent bits systematically.
7474
"""
7575

tests/panels/test_sql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ def test_prettify_sql(self):
444444

445445
# Reset the queries
446446
self.panel._queries = []
447-
# Run it again, but with prettyify off. Verify that it's different.
447+
# Run it again, but with prettify off. Verify that it's different.
448448
dt_settings.get_config()["PRETTIFY_SQL"] = False
449449
list(User.objects.filter(username__istartswith="spam"))
450450
response = self.panel.process_request(self.request)
@@ -453,7 +453,7 @@ def test_prettify_sql(self):
453453
self.assertNotEqual(pretty_sql, self.panel._queries[-1]["sql"])
454454

455455
self.panel._queries = []
456-
# Run it again, but with prettyify back on.
456+
# Run it again, but with prettify back on.
457457
# This is so we don't have to check what PRETTIFY_SQL does exactly,
458458
# but we know it's doing something.
459459
dt_settings.get_config()["PRETTIFY_SQL"] = True

0 commit comments

Comments
 (0)