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

Unified Diff: tests/conftest.py

Issue 29805580: Issue 6728 - Remove Mercurial dependency (Closed)
Patch Set: Addremove files to diff Created June 12, 2018, 11:01 p.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
Index: tests/conftest.py
===================================================================
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,23 +1,15 @@
import os
import pytest
import shutil
-import subprocess
ROOTPATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@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])
Vasily Kuznetsov 2018/06/13 13:35:23 Woohoo! All of this stuff GONE. Could even delete
Jon Sonesen 2018/06/14 19:24:14 Yeah that's a good idea, I reckon we should do thi
Vasily Kuznetsov 2018/07/03 08:50:24 I agree. Another commit would be better.
- 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

Powered by Google App Engine
This is Rietveld