Skip to content
Permalink
Browse files

[processing tests] Cleanup layer registry before every new test

  • Loading branch information
m-kuhn committed May 22, 2016
1 parent 2aa002d commit 7f3526be71859278bd1e7e26fa423485b777c0ba
Showing with 2 additions and 0 deletions.
  1. +2 −0 python/plugins/processing/tests/AlgorithmsTestBase.py
@@ -68,6 +68,8 @@ def check_algorithm(self, name, defs):
:param name: The identifier name used in the test output heading
:param defs: A python dict containing a test algorithm definition
"""
QgsMapLayerRegistry.instance().removeAllMapLayers()

params = self.load_params(defs['params'])

alg = processing.Processing.getAlgorithm(defs['algorithm']).getCopy()

0 comments on commit 7f3526b

Please sign in to comment.
You can’t perform that action at this time.