Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: tests/conftest.py

Issue 29886648: Issue #6942 - Add XTM integration in CMS (Closed)
Patch Set: Addressed comments on patch set #2 Created Oct. 3, 2018, 2:50 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld