mirror of
https://github.com/getredash/redash.git
synced 2026-03-22 10:00:17 -04:00
Sort Python safe built-ins (#5781)
Co-authored-by: Jiajie Zhong <zhongjiajie955@hotmail.com> Co-authored-by: Jiajie Zhong <zhongjiajie955@gmail.com>
This commit is contained in:
9
tests/query_runner/test_python.py
Normal file
9
tests/query_runner/test_python.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from unittest import TestCase
|
||||
|
||||
from redash.query_runner.python import Python
|
||||
|
||||
|
||||
class TestPython(TestCase):
|
||||
def test_sorted_safe_builtins(self):
|
||||
src = list(Python.safe_builtins)
|
||||
assert src == sorted(src), 'Python safe_builtins package not sorted.'
|
||||
Reference in New Issue
Block a user