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']) |
Vasily Kuznetsov
2017/04/03 09:55:08
Are we actually using this second bookmark?
Jon Sonesen
2017/04/03 10:10:59
yes, it is what we use to commit the 'bar.md' file
|
+ 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 |