Skip to content

Commit 43b4539

Browse files
committed
Added test to check fork is in list
1 parent effa504 commit 43b4539

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/python_test_v4.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,9 @@
467467
p = gl.projects.get(fork.id)
468468
assert(p.forked_from_project['id'] == admin_project.id)
469469

470+
forks = admin_project.forks.list()
471+
assert(fork.id in map(lambda p: p.id, forks))
472+
470473
# project hooks
471474
hook = admin_project.hooks.create({'url': 'http://hook.url'})
472475
assert(len(admin_project.hooks.list()) == 1)

0 commit comments

Comments
 (0)