Exemple #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()
Exemple #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()
Exemple #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()
Exemple #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": []
        }
Exemple #5
0
 def setUp(self):
     self.user = '******'
     self.passwd = 'admin'
     create_models(type='layer')
     create_layer_data()
Exemple #6
0
 def setUp(self):
     self.user = '******'
     self.passwd = 'admin'
     create_models(type='layer')
     create_layer_data()
Exemple #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')
Exemple #8
0
 def setUp(self):
     create_models('document')
     create_models('map')
Exemple #9
0
 def setUp(self):
     self.user = '******'
     self.passwd = 'admin'
     create_models(type='map')
     create_models(type='layer')
     create_maplayers()
Exemple #10
0
 def setUp(self):
     self.user = '******'
     self.passwd = 'admin'
     create_models(type='map')
     create_models(type='layer')
     create_maplayers()
Exemple #11
0
 def setUp(self):
     create_models(type="layer")
     create_layer_data()
     self.user = User.objects.filter(username="******")[0]
Exemple #12
0
 def setUp(self):
     create_models(type='layer')
     create_layer_data()
     self.user = User.objects.filter(username='******')[0]
Exemple #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;')
Exemple #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;')
Exemple #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')