# HG changeset patch # User Mads Kiilerich # Date 1604927738 -3600 # 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 -r f9a2f5d6c486 -r 76394eb36b27 kallithea/tests/fixture.py --- a/kallithea/tests/fixture.py Sun Dec 13 23:09:49 2020 +0100 +++ b/kallithea/tests/fixture.py Mon Nov 09 14:15:38 2020 +0100 @@ -173,7 +173,7 @@ 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