##// END OF EJS Templates
pytest: Create test search index from rc_testdata package.
Martin Bornhold -
r212:c1cbe8e0 default
parent child Browse files
Show More
@@ -718,10 +718,10 b' def create_test_index(repo_location, con'
718 mv vcs_search_index.tar.gz rhodecode/tests/fixtures/
718 mv vcs_search_index.tar.gz rhodecode/tests/fixtures/
719
719
720 """
720 """
721 cur_dir = dn(dn(abspath(__file__)))
721 import rc_testdata
722 with tarfile.open(jn(cur_dir, 'tests', 'fixtures',
722
723 'vcs_search_index.tar.gz')) as tar:
723 rc_testdata.extract_search_index(
724 tar.extractall(os.path.dirname(config['search.location']))
724 'vcs_search_index', os.path.dirname(config['search.location']))
725
725
726
726
727 def create_test_env(repos_test_path, config):
727 def create_test_env(repos_test_path, config):
General Comments 0
You need to be logged in to leave comments. Login now