This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node { | |
// https://registry.hub.docker.com/_/maven/ | |
def maven32 = docker.image('maven:3.2-jdk-7-onbuild'); | |
stage 'Mirror' | |
// First make sure the slave has this image. | |
// (If you could set your registry below to mirror Docker Hub, | |
// this would be unnecessary as maven32.inside would pull the image.) | |
maven32.pull() | |
// We are pushing to a private secure docker registry in this demo. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pytest | |
from django.conf import settings | |
from django.urls import URLPattern, URLResolver | |
def _admin_urls(): | |
""" function to return all admin urls from urlconf.urlpatterns | |
""" | |
urlconf = __import__(settings.ROOT_URLCONF, {}, {}, [""]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is definitely not the best approach and preferably if we can use django admin base class would be better. | |
# base model | |
import json | |
from django.contrib.postgres.fields import JSONField | |
from django.db import models | |
from django.utils.safestring import mark_safe | |
from pygments import highlight | |
from pygments.formatters.html import HtmlFormatter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# a faker provider for handling generating phone numbers for Kuwait & Saudi Arabia | |
class MENAPhoneNumberProvider(faker.providers.BaseProvider): | |
""" Returns a determined list of numbers from MENA Region | |
*Saudi Arabia* | |
+966 50/53/55 XXX XXXX - Saudi Telecom Company | |
+966 51 XXX XXXX - Bravo Telecom (Push-to-talk Motorola) | |
+966 58/59 XXX XXXX - Zain Group | |
+966 54/56 XXX XXXX - Mobily |