Mercurial > kallithea
changeset 8802:76394eb36b27
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.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Mon, 09 Nov 2020 14:15:38 +0100 |
parents | f9a2f5d6c486 |
children | 3edb29cfca8e |
files | kallithea/tests/fixture.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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