Changeset - 76394eb36b27
[Not reviewed]
default
0 1 0
Mads Kiilerich (mads) - 5 years ago 2020-11-09 14:15:38
mads@kiilerich.com
Grafted from: 81f376bab215
tests: fix create_fork to actually pass a repo id as fork_parent_id

Passing a whole repo wouldn't work if actually using celery and thus
serializing the parameters. The test scenario was thus different from actual
runtime.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/fixture.py
Show inline comments
 
@@ -173,7 +173,7 @@ class Fixture(object):
 
        repo_to_fork = db.Repository.get_by_repo_name(repo_to_fork)
 

	
 
        form_data = self._get_repo_create_params(repo_name=fork_name,
 
                                            fork_parent_id=repo_to_fork,
 
                                            fork_parent_id=repo_to_fork.repo_id,
 
                                            repo_type=repo_to_fork.repo_type,
 
                                            **kwargs)
 
        # patch form dict so it can be used directly by model
0 comments (0 inline, 0 general)