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

Unified Diff: tests/conftest.py

Issue 29400555: Issue 4992 - Adds optional revision arg to generate_static_pages (Closed) Base URL: https://hg.adblockplus.org/cms
Patch Set: fixed redundant sys.argv definition Created April 4, 2017, 6:59 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cms/sources.py ('k') | tests/test_page_outputs.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/conftest.py
===================================================================
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -10,9 +10,14 @@
@pytest.fixture(scope='session')
def temp_site(tmpdir_factory):
out_dir = tmpdir_factory.mktemp('temp_out')
site_dir = out_dir.join('test_site').strpath
shutil.copytree(os.path.join(ROOTPATH, 'tests', 'test_site'), site_dir)
subprocess.check_call(['hg', 'init', site_dir])
subprocess.check_call(['hg', '-R', site_dir, 'commit', '-A', '-m', 'foo'])
+
+ subprocess.check_call(['hg', '-R', site_dir, 'bookmark', 'master'])
+ subprocess.check_call(['hg', '-R', site_dir, 'bookmark', 'test'])
+ subprocess.check_call(['touch', os.path.join(site_dir, 'pages', 'bar.md')])
+ subprocess.check_call(['hg', '-R', site_dir, 'commit', '-A', '-m', 'bar'])
yield site_dir
« no previous file with comments | « cms/sources.py ('k') | tests/test_page_outputs.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld