def setUpClass(cls):
     TestQgsPalLabeling.setUpClass()
     cls.setUpServerProjectAndDir(TESTPROJPATH, TESTPROJDIR)
     cls.layer = TestQgsPalLabeling.loadFeatureLayer('background')
     cls.layer = TestQgsPalLabeling.loadFeatureLayer('point')
     cls.checkmismatch = 1000
     cls.checkgroup = ''
    def setUpClass(cls):
        TestQgsPalLabeling.setUpClass()

        cls._TestProj = QgsProject.instance()
        cls._TestProj.setFileName(str(TESTPROJPATH).strip())
        if not cls._TestProjSetup:
            try:
                shutil.copy(cls._PalFeaturesDb, TESTPROJDIR)
                for qml in glob.glob(cls._PalDataDir + os.sep + '*.qml'):
                    shutil.copy(qml, TESTPROJDIR)
            except IOError, e:
                raise IOError(str(e) +
                              '\nCould not set up test server directory')
            cls._TestProjSetup = True
Esempio n. 3
0
    def setUpClass(cls):
        TestQgsPalLabeling.setUpClass()
        MAPSERV.startup()
        MAPSERV.web_dir_install(os.listdir(cls._PalDataDir), cls._PalDataDir)

        cls._TestProj = QgsProject.instance()
        cls._TestProjName = 'pal_test.qgs'
        cls._TestProj.setFileName(
            os.path.join(MAPSERV.web_dir(), cls._TestProjName))

        # the blue background (set via layer style) to match renderchecker's
        cls._BkgrdLayer = TestQgsPalLabeling.loadFeatureLayer('background')
        cls._CheckMismatch = 200  # default for server tests; mismatch expected
        cls._CheckGroup = ''  # default '' will check against server control
    def setUpClass(cls):
        if not cls._BaseSetup:
            TestQgsPalLabeling.setUpClass()
        MAPSERV.startup()
        MAPSERV.web_dir_install(glob.glob(cls._PalDataDir + os.sep + '*.qml'))

        # noinspection PyArgumentList
        cls._TestProj = QgsProject.instance()
        cls._TestProjName = 'pal_test.qgs'
        cls._TestProj.setFileName(
            os.path.join(MAPSERV.web_dir(), cls._TestProjName))

        # the blue background (set via layer style) to match renderchecker's
        TestQgsPalLabeling.loadFeatureLayer('background', True)

        settings = QSettings()
        # noinspection PyArgumentList
        cls._CacheDir = settings.value(
            "cache/directory", QgsApplication.qgisSettingsDirPath() + "cache")
    def setUpClass(cls):
        TestQgsPalLabeling.setUpClass()
        MAPSERV.startup()
        MAPSERV.web_dir_install(glob.glob(cls._PalDataDir + os.sep + '*.qml'))

        # noinspection PyArgumentList
        cls._TestProj = QgsProject.instance()
        cls._TestProjName = 'pal_test.qgs'
        cls._TestProj.setFileName(
            os.path.join(MAPSERV.web_dir(), cls._TestProjName))

        # the blue background (set via layer style) to match renderchecker's
        cls._BkgrdLayer = TestQgsPalLabeling.loadFeatureLayer('background')
        cls._CheckMismatch = 200  # default for server tests; mismatch expected
        cls._CheckGroup = ''  # default '' will check against server control

        settings = QSettings()
        # noinspection PyArgumentList
        cls._CacheDir = settings.value(
            "cache/directory", QgsApplication.qgisSettingsDirPath() + "cache")
 def setUpClass(cls):
     if not cls._BaseSetup:
         TestQgsPalLabeling.setUpClass()
 def setUpClass(cls):
     if not cls._BaseSetup:
         TestQgsPalLabeling.setUpClass()
     cls._Pal.setDrawLabelRectOnly(True)
     cls._Pal.saveEngineSettings()
Esempio n. 8
0
 def setUpClass(cls):
     if not cls._BaseSetup:
         TestQgsPalLabeling.setUpClass()
     # the blue background (set via layer style) to match renderchecker's
     TestQgsPalLabeling.loadFeatureLayer('background', True)
     cls._TestKind = 0  # OutputKind.(Img|Svg|Pdf)
 def setUpClass(cls):
     TestQgsPalLabeling.setUpClass()
     cls.layer = TestQgsPalLabeling.loadFeatureLayer('point')
Esempio n. 10
0
 def setUpClass(cls):
     if not cls._BaseSetup:
         TestQgsPalLabeling.setUpClass()
Esempio n. 11
0
 def setUpClass(cls):
     if not cls._BaseSetup:
         TestQgsPalLabeling.setUpClass()
     # the blue background (set via layer style) to match renderchecker's
     TestQgsPalLabeling.loadFeatureLayer('background', True)
     cls._TestKind = 0  # OutputKind.(Img|Svg|Pdf)
Esempio n. 12
0
 def setUpClass(cls):
     if not cls._BaseSetup:
         TestQgsPalLabeling.setUpClass()
     cls._Pal.setDrawLabelRectOnly(True)
     cls._Pal.saveEngineSettings()
 def setUpClass(cls):
     TestQgsPalLabeling.setUpClass()
     cls.layer = TestQgsPalLabeling.loadFeatureLayer('point')
Esempio n. 14
0
 def setUpClass(cls):
     TestQgsPalLabeling.setUpClass()
     # the blue background (set via layer style) to match renderchecker's
     cls._BkgrdLayer = TestQgsPalLabeling.loadFeatureLayer('background')
     cls._CheckMismatch = 0  # mismatch expected for crosscheck
     cls._CheckGroup = ''
 def setUpClass(cls):
     TestQgsPalLabeling.setUpClass()
     # the blue background (set via layer style) to match renderchecker's
     cls._BkgrdLayer = TestQgsPalLabeling.loadFeatureLayer('background')
     cls._CheckMismatch = 0  # mismatch expected for crosscheck
     cls._CheckGroup = ''