Skip to content

Remove vulnerable js2py #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions django_js_reverse/tests/unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from django.core.management import call_command
from django.template import Context, RequestContext, Template
from django.utils.encoding import smart_str
import js2py
from helper import is_django_ver_gte_2
from utils import script_prefix

Expand Down Expand Up @@ -51,9 +50,6 @@ def node_jseval(expr):
return re.sub(r'\n$', '', stdout)


def js2py_jseval(expr):
return js2py.eval_js(expr)


class AbstractJSReverseTestCase(object):
client = Client()
Expand All @@ -75,7 +71,6 @@ def url(jseval):
return expected_url(jseval)

self.assertEqual(node_jseval(module), url(node_jseval))
self.assertEqual(js2py_jseval('(function () {{ {} }}())'.format(script)), url(js2py_jseval))

def assertEqualJSUrlEval(self, *args, **kwargs):
js = smart_str(self.client.post('/jsreverse/').content)
Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ pip_pre = true
commands = coverage run -p django_js_reverse/tests/unit_tests.py
deps=
coverage
js2py==0.74
packaging==21.3
django32: Django>=3.2,<4.0
django40: Django>=4.0,<4.1
Expand Down