Testing pytest

This commit is contained in:
Roman Yurchak 2018-08-23 16:59:16 +03:00
parent 56597e2d5a
commit 4dd93ca99a
1 changed files with 11 additions and 0 deletions

11
test/test_packaging.py Normal file
View File

@ -0,0 +1,11 @@
def test_pytest(selenium):
selenium.load_package('pytest')
selenium.load_package('pandas')
selenium.run('from pathlib import Path')
selenium.run('import os')
selenium.run('import pandas as pd')
selenium.run('base_dir = Path(pd.__file__).parent / "tests" / "frame"')
selenium.run('print(base_dir)')
selenium.run('print(list(sorted(os.listdir(base_dir))))')
selenium.run("import pytest;"
"pytest.main([base_dir / 'test_sorting.py'])")