OLD | NEW |
| 1 from __future__ import unicode_literals |
| 2 |
1 import os | 3 import os |
2 import pytest | 4 import pytest |
3 import shutil | 5 import shutil |
4 | 6 |
| 7 pytest_plugins = [ |
| 8 'tests.xtm_conftest', |
| 9 ] |
| 10 |
| 11 _INTERCEPT_PORT = 443 |
| 12 _INTERCEPT_HOST = 'wstest2.xtm-intl.com' |
5 | 13 |
6 ROOTPATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | 14 ROOTPATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |
7 | 15 |
8 | 16 |
9 @pytest.fixture(scope='session') | 17 @pytest.fixture(scope='session') |
10 def temp_site(tmpdir_factory): | 18 def temp_site(tmpdir_factory): |
11 out_dir = tmpdir_factory.mktemp('temp_out') | 19 out_dir = tmpdir_factory.mktemp('temp_out') |
12 site_dir = out_dir.join('test_site').strpath | 20 site_dir = out_dir.join('test_site').strpath |
13 | 21 |
14 shutil.copytree(os.path.join(ROOTPATH, 'tests', 'test_site'), site_dir) | 22 shutil.copytree(os.path.join(ROOTPATH, 'tests', 'test_site'), site_dir) |
15 yield site_dir | 23 yield site_dir |
OLD | NEW |