Commit 9f98a987 authored by Romain Casati's avatar Romain Casati
Browse files

Correctly testing execution_count.

parent c1395a1b
Pipeline #405619 passed with stage
in 3 minutes and 28 seconds
......@@ -18,8 +18,10 @@ def test_setup(selenium):
def test_result(selenium):
data = selenium.run_basthon("1 + 1")['result']
assert data['result']['text/plain'] == '2' and data['execution_count'] == 1
for i in range(10):
data = selenium.run_basthon(f"{i} + {i}")['result']
assert data['result']['text/plain'] == str(2 * i)
assert data['execution_count'] == i + 1
def test_streams(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