Changeset - 45d71d0a07f2
[Not reviewed]
default
0 1 0
Mads Kiilerich - 6 years ago 2019-12-26 04:49:42
mads@kiilerich.com
Grafted from: 8eeeeb687c87
vcs: replace "has_key" with "in" in decorator skip criteria

Needed for py3.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/performance/test_vcs.py
Show inline comments
 
@@ -15,13 +15,13 @@
 
import pytest
 

	
 
from kallithea.model.db import Repository
 
from kallithea.tests.base import *
 

	
 

	
 
@pytest.mark.skipif("not os.environ.has_key('TEST_PERFORMANCE')", reason="skipping performance tests, set TEST_PERFORMANCE in environment if desired")
 
@pytest.mark.skipif("'TEST_PERFORMANCE' not in os.environ", reason="skipping performance tests, set TEST_PERFORMANCE in environment if desired")
 
class TestVCSPerformance(TestController):
 

	
 
    def graphmod(self, repo):
 
        """ Simple test for running the graph_data function for profiling/testing performance. """
 
        from kallithea.lib.graphmod import graph_data
 
        dbr = Repository.get_by_repo_name(repo)
0 comments (0 inline, 0 general)