Exemplo n.º 1
0
 def setUpClass(cls):
     "Hook method for setting up class fixture before running tests in the class."
     from django.core.cache import cache
     cache.clear()
     searchTest('_fixture_setup')._fixture_setup(True)
     create_models()
     all_public()
Exemplo n.º 2
0
 def setUpClass(cls):
     "Hook method for setting up class fixture before running tests in the class."
     from django.core.cache import cache
     cache.clear()
     searchTest('_fixture_setup')._fixture_setup(True)
     create_models()
     all_public()
Exemplo n.º 3
0
    def setUp(self):
        super(SearchApiTests, self).setUp()

        self.list_url = reverse('api_dispatch_list',
                                kwargs={
                                    'api_name': 'api',
                                    'resource_name': 'layers'
                                })
        create_models(type='layer')
        all_public()
Exemplo n.º 4
0
    def setUp(self):
        super(PermissionsApiTests, self).setUp()

        self.user = '******'
        self.passwd = 'admin'
        self.list_url = reverse('api_dispatch_list',
                                kwargs={
                                    'api_name': 'api',
                                    'resource_name': 'layers'
                                })
        create_models(type='layer')
        all_public()
        self.perm_spec = {
            "anonymous": "_none",
            "authenticated": "layer_readwrite",
            "users": []
        }
Exemplo n.º 5
0
 def setUp(self):
     self.user = '******'
     self.passwd = 'admin'
     create_models(type='layer')
     create_layer_data()
Exemplo n.º 6
0
 def setUp(self):
     self.user = '******'
     self.passwd = 'admin'
     create_models(type='layer')
     create_layer_data()
Exemplo n.º 7
0
 def setUp(self):
     create_models(type='layer')
     create_models(type='map')
     create_models(type='document')
     self.norman = User.objects.get(username="******")
     self.bar = Group.objects.get(slug='bar')
Exemplo n.º 8
0
 def setUp(self):
     create_models('document')
     create_models('map')
Exemplo n.º 9
0
 def setUp(self):
     self.user = '******'
     self.passwd = 'admin'
     create_models(type='map')
     create_models(type='layer')
     create_maplayers()
Exemplo n.º 10
0
 def setUp(self):
     self.user = '******'
     self.passwd = 'admin'
     create_models(type='map')
     create_models(type='layer')
     create_maplayers()
Exemplo n.º 11
0
 def setUp(self):
     create_models(type="layer")
     create_layer_data()
     self.user = User.objects.filter(username="******")[0]
Exemplo n.º 12
0
 def setUp(self):
     create_models(type='layer')
     create_layer_data()
     self.user = User.objects.filter(username='******')[0]
Exemplo n.º 13
0
 def setUp(self):
     create_models('document')
     create_models('map')
     self.imgfile = StringIO.StringIO(
         'GIF87a\x01\x00\x01\x00\x80\x01\x00\x00\x00\x00ccc,\x00'
         '\x00\x00\x00\x01\x00\x01\x00\x00\x02\x02D\x01\x00;')
Exemplo n.º 14
0
 def setUp(self):
     create_models('document')
     create_models('map')
     self.imgfile = StringIO.StringIO('GIF87a\x01\x00\x01\x00\x80\x01\x00\x00\x00\x00ccc,\x00'
                                      '\x00\x00\x00\x01\x00\x01\x00\x00\x02\x02D\x01\x00;')
Exemplo n.º 15
0
 def setUp(self):
     create_models(type='layer')
     create_models(type='map')
     create_models(type='document')
     self.norman = User.objects.get(username="******")
     self.bar = Group.objects.get(slug='bar')