Exemple #1
0
    def setUp(self):
        self.profile_widget = GitlabProfileWidget()
        self.current_request = HttpRequest()
        self.current_request.COOKIES['_gitlab_session'] = 'sampleuser'
        self.current_request.method = 'POST'

        self.http_response = HttpResponse()
        self.streaming_http_response = StreamingHttpResponse()
Exemple #2
0
from colab.widgets.widget_manager import WidgetManager

from colab_gitlab.widgets.profile.profile import GitlabProfileWidget

WidgetManager.register_widget('profile', GitlabProfileWidget())