1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 from contextlib
import contextmanager
10 JS
= os
.path
.join(os
.path
.dirname(__file__
), "js.py")
15 os
.environ
["JSSHELL"] = JS
19 del os
.environ
["JSSHELL"]
22 def test_run_no_jsshell():
23 with pytest
.raises(FileNotFoundError
):
24 smoke
.run_jsshell("--fuzzing-safe -e 'print(\"PASSED\")'")
27 def test_run_jsshell_set():
29 smoke
.run_jsshell("--fuzzing-safe -e 'print(\"PASSED\")'")
32 def test_smoke_test():