Commit 1b9a10eb authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

tests: give it some time

parent 5758afad
Pipeline #14756 failed with stage
in 7 minutes and 33 seconds
import hmac import hmac
import re import re
import time
import git
from hashlib import sha1 from hashlib import sha1
from autoslug.utils import slugify
from django.conf import settings from django.conf import settings
from django.test import TestCase from django.test import TestCase
from django.urls import reverse from django.urls import reverse
from django.utils.encoding import force_bytes from django.utils.encoding import force_bytes
from rainboard.models import Project, Namespace, Forge import git
from autoslug.utils import slugify
from rainboard.models import Forge, Namespace, Project
def redact_token(func): def redact_token(func):
...@@ -363,6 +363,7 @@ class GhTests(TestCase): ...@@ -363,6 +363,7 @@ class GhTests(TestCase):
pr_number=pr_master.number) pr_number=pr_master.number)
self.assertEqual(response.status_code, 200) self.assertEqual(response.status_code, 200)
self.assertTrue([c.body for c in pr_master.get_issue_comments() if not_accepted_string in c.body]) self.assertTrue([c.body for c in pr_master.get_issue_comments() if not_accepted_string in c.body])
sleep(30)
self.assertIn(f'pr/{pr_master.number}', [b.name for b in self.gitlab.branches.list()]) self.assertIn(f'pr/{pr_master.number}', [b.name for b in self.gitlab.branches.list()])
# Test pr on devel # Test pr on devel
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment