File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed
python/ql/test/library-tests/frameworks Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 66
77def main ():
88 """Run administrative tasks."""
9- os .environ .setdefault ('DJANGO_SETTINGS_MODULE' , 'testproj.settings' )
9+ os .environ .setdefault ('DJANGO_SETTINGS_MODULE' , 'testproj.settings' ) # $ threatModelSource[environment]=os.environ
1010 try :
1111 from django .core .management import execute_from_command_line
1212 except ImportError as exc :
@@ -15,7 +15,7 @@ def main():
1515 "available on your PYTHONPATH environment variable? Did you "
1616 "forget to activate a virtual environment?"
1717 ) from exc
18- execute_from_command_line (sys .argv )
18+ execute_from_command_line (sys .argv ) # $ threatModelSource[commandargs]=sys.argv
1919
2020
2121if __name__ == '__main__' :
Original file line number Diff line number Diff line change 1111
1212from django .core .asgi import get_asgi_application
1313
14- os .environ .setdefault ('DJANGO_SETTINGS_MODULE' , 'testproj.settings' )
14+ os .environ .setdefault ('DJANGO_SETTINGS_MODULE' , 'testproj.settings' ) # $ threatModelSource[environment]=os.environ
1515
1616application = get_asgi_application ()
Original file line number Diff line number Diff line change 1111
1212from django .core .wsgi import get_wsgi_application
1313
14- os .environ .setdefault ('DJANGO_SETTINGS_MODULE' , 'testproj.settings' )
14+ os .environ .setdefault ('DJANGO_SETTINGS_MODULE' , 'testproj.settings' ) # $ threatModelSource[environment]=os.environ
1515
1616application = get_wsgi_application ()
Original file line number Diff line number Diff line change 66
77def main ():
88 """Run administrative tasks."""
9- os .environ .setdefault ('DJANGO_SETTINGS_MODULE' , 'testproj.settings' )
9+ os .environ .setdefault ('DJANGO_SETTINGS_MODULE' , 'testproj.settings' ) # $ threatModelSource[environment]=os.environ
1010 try :
1111 from django .core .management import execute_from_command_line
1212 except ImportError as exc :
@@ -15,7 +15,7 @@ def main():
1515 "available on your PYTHONPATH environment variable? Did you "
1616 "forget to activate a virtual environment?"
1717 ) from exc
18- execute_from_command_line (sys .argv )
18+ execute_from_command_line (sys .argv ) # $ threatModelSource[commandargs]=sys.argv
1919
2020
2121if __name__ == '__main__' :
Original file line number Diff line number Diff line change 1717
1818name = windows .parent .name
1919o = open
20- o (name ) # $ getAPathArgument=name
20+ o (name ) # $ getAPathArgument=name threatModelSource[file]=o(..)
2121
2222wb = p .write_bytes
2323wb (b"hello" ) # $ getAPathArgument=p fileWriteData=b"hello"
You can’t perform that action at this time.
0 commit comments