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:
Jesse
2022-07-06 08:16:36 -05:00
committed by GitHub
parent 412c82940a
commit 65f7b6c5af
2 changed files with 32 additions and 23 deletions

View 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.'