Beispiel #1
0
    def setUp(self):
        self.old_name = 'oldname'

        app = App()
        app.code = self.old_name
        app.name = self.old_name
        app.introduction = "introduction"
        app.creater = 'admin',
        app.language = 'python'
        app.auth_token = '1234'
        app.deploy_token = '1234'
        app.tags = None
        app.save()
Beispiel #2
0
    def setUp(self):
        # Every test needs access to the request factory.
        self.factory = RequestFactory()
        self.user = BkUser.objects.create_user('test', password='******')

        self.old_name = 'oldname'
        app = App()
        app.code = self.old_name
        app.name = self.old_name
        app.introduction = "introduction"
        app.creater = 'admin',
        app.language = 'python'
        app.auth_token = '1234'
        app.deploy_token = '1234'
        app.tags = None
        app.save()
Beispiel #3
0
    def setUp(self):
        self.factory = RequestFactory()
        # from django.test.client import Client
        # self.client = Client()
        self.user = BkUser.objects.create_user('test', password='******')

        self.code = 'test'

        app = App()
        app.code = self.code
        app.name = self.code
        app.introduction = "introduction"
        app.creater = 'admin',
        app.language = 'python'
        app.auth_token = '1234'
        app.deploy_token = '1234'
        app.tags = None
        app.save()