Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
dashboard
Commits
1b9a10eb
Commit
1b9a10eb
authored
May 31, 2021
by
Guilhem Saurel
Browse files
tests: give it some time
parent
5758afad
Pipeline
#14756
failed with stage
in 7 minutes and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gh/tests.py
View file @
1b9a10eb
import
hmac
import
re
import
git
import
time
from
hashlib
import
sha1
from
autoslug.utils
import
slugify
from
django.conf
import
settings
from
django.test
import
TestCase
from
django.urls
import
reverse
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
):
...
...
@@ -363,6 +363,7 @@ class GhTests(TestCase):
pr_number
=
pr_master
.
number
)
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
])
sleep
(
30
)
self
.
assertIn
(
f
'pr/
{
pr_master
.
number
}
'
,
[
b
.
name
for
b
in
self
.
gitlab
.
branches
.
list
()])
# Test pr on devel
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment