Commit 06da1be0 authored by Romain Casati's avatar Romain Casati
Browse files

A target version of modules.txt is generated during tests.

parent 216dac47
\ No newline at end of file
......@@ -18,5 +18,8 @@ def test_hack_input(selenium):
def test_hack_modules(selenium):
data = selenium.run_basthon("help('modules')")
assert 'result' not in data['result'] and data['stderr'] == ""
# to easily update modules.txt in case a package is added
with open(Path(__file__).parent / 'data' / 'modules.generated_during_tests.txt', 'w') as f:
with open(Path(__file__).parent / 'data' / 'modules.txt') as f:
assert data['stdout'] ==
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