From 4dd93ca99af4685e19daff7f41b7031190f0a527 Mon Sep 17 00:00:00 2001 From: Roman Yurchak Date: Thu, 23 Aug 2018 16:59:16 +0300 Subject: [PATCH] Testing pytest --- test/test_packaging.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/test_packaging.py diff --git a/test/test_packaging.py b/test/test_packaging.py new file mode 100644 index 000000000..5de6debe2 --- /dev/null +++ b/test/test_packaging.py @@ -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'])")