Commit c1395a1b authored by Romain Casati's avatar Romain Casati
Browse files

Testing namespace persistence across calls.

parent de3aed63
......@@ -7,6 +7,9 @@ def test_globals(selenium):
# `pyodide` in globale namespace
data = selenium.run_basthon("import __main__; sorted(dir(__main__))")
assert data['result']['result']['text/plain'] == str(sorted(['In', 'Out', '_', '__', '___', '__builtins__', '__doc__', '__eval_data__', '__main__', '__name__']))
selenium.run_basthon("a = 5")
data = selenium.run_basthon("a")
assert data['result']['result']['text/plain'] == "5"
def test_setup(selenium):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment