Skip to content

Commit 461e2f3

Browse files
RasmusWLyoff
andauthored
Python: Apply suggestions from code review
Co-authored-by: yoff <lerchedahl@gmail.com>
1 parent 27d5349 commit 461e2f3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

python/ql/test/library-tests/frameworks/django-orm/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ The interesting ORM tests files can be found under `testapp/orm_*.py`. These are
33
List of interesting tests files (that might go out of date if it is forgotten :flushed:):
44

55
- [testapp/orm_tests.py](testapp/orm_tests.py): which tests flow from source to sink
6-
- [testapp/orm_security_tests.py](testapp/orm_form_test.py): shows how forms can be used to save Models to the DB
6+
- [testapp/orm_form_test.py](testapp/orm_form_test.py): shows how forms can be used to save Models to the DB
77
- [testapp/orm_security_tests.py](testapp/orm_security_tests.py): which highlights some interesting interactions with security queries
88
- [testapp/orm_inheritance.py](testapp/orm_inheritance.py): which highlights how inheritance of ORM models works
99

python/ql/test/library-tests/frameworks/django-orm/testapp/orm_security_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def show_age(request):
6868
#
6969
# 1. We don't have any good way to determine what the validator actually does. So we
7070
# don't have any way to determine if a validator would make data safe for a
71-
# particular query. So we would have to blindly trust that if any validator what
71+
# particular query. So we would have to blindly trust that if any validator was
7272
# specified, that would mean data is always safe :| We still want to produce more
7373
# results, so by default, we would want to do it this way, and live live with the FPs
7474
# that arise -- if it turns out that is too troublesome, we can look more into it.

python/ql/test/library-tests/frameworks/django-orm/testapp/orm_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def test_save9_load():
200200
# --------------------------------------
201201

202202
class save10_BlogPost(models.Model):
203-
# dummy contet, only has automatic `id` field
203+
# dummy content, only has automatic `id` field
204204
pass
205205

206206
class save10_Comment(models.Model):

0 commit comments

Comments
 (0)