# HG changeset patch # User Mads Kiilerich # Date 2020-11-09 14:15:38 # Node ID 76394eb36b2739cbc7ae63eb5d1415c58c8532f7 # Parent f9a2f5d6c4861fc313b64e654116120cc1ddd8eb 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. diff --git a/kallithea/tests/fixture.py b/kallithea/tests/fixture.py --- a/kallithea/tests/fixture.py +++ b/kallithea/tests/fixture.py @@ -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