# HG changeset patch # User Mads Kiilerich # Date 1525646984 -7200 # Node ID f359ebe73041b0f384857029a788227932c4f920 # Parent 959e009afcae55f701b1485c239e6c0c6d4c3444 tests: fix some incorrect test use of create_repo to create forks This would create problems later when we start checking clone_uri. diff -r 959e009afcae -r f359ebe73041 kallithea/tests/functional/test_compare.py --- a/kallithea/tests/functional/test_compare.py Mon May 07 00:49:44 2018 +0200 +++ b/kallithea/tests/functional/test_compare.py Mon May 07 00:49:44 2018 +0200 @@ -457,17 +457,13 @@ Session().commit() self.assertEqual(repo1.scm_instance.revisions, [cs0.raw_id]) #fork the repo1 - repo2 = fixture.create_repo('one-fork', repo_type='hg', - repo_description='diff-test', - cur_user=TEST_USER_ADMIN_LOGIN, - clone_uri=repo1.repo_full_path, - fork_of='one') + repo2 = fixture.create_fork(r1_name, 'one-fork', + cur_user=TEST_USER_ADMIN_LOGIN) Session().commit() self.assertEqual(repo2.scm_instance.revisions, [cs0.raw_id]) self.r2_id = repo2.repo_id r2_name = repo2.repo_name - cs1 = fixture.commit_change(repo=r2_name, filename='file1-fork', content='file1-line1-from-fork', message='commit1-fork', vcs_type='hg', parent=repo2.scm_instance[-1], newfile=True) @@ -537,11 +533,8 @@ Session().commit() self.assertEqual(repo1.scm_instance.revisions, [cs0.raw_id]) #fork the repo1 - repo2 = fixture.create_repo('one-git-fork', repo_type='git', - repo_description='diff-test', - cur_user=TEST_USER_ADMIN_LOGIN, - clone_uri=repo1.repo_full_path, - fork_of='one-git') + repo2 = fixture.create_fork(r1_name, 'one-git-fork', + cur_user=TEST_USER_ADMIN_LOGIN) Session().commit() self.assertEqual(repo2.scm_instance.revisions, [cs0.raw_id]) self.r2_id = repo2.repo_id