Changeset - 90e1a287b7a2
[Not reviewed]
stable
0 1 0
Mads Kiilerich (mads) - 5 months ago 2025-10-05 13:21:12
mads@kiilerich.com
tests: drop adding working directory to sys.path

This seems to be unnecessary boilerplate from 07dbfabb8f.

This removes one reference to the dying pkg_resources module.
1 file changed with 0 insertions and 6 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/conftest.py
Show inline comments
 
import logging
 
import os
 
import sys
 
import time
 

	
 
import formencode
 
import pkg_resources
 
import pytest
 
from paste.deploy import loadwsgi
 
from pytest_localserver.http import WSGIServer
 
@@ -27,10 +25,6 @@ def pytest_configure():
 
    if not kallithea.is_windows:
 
        time.tzset() # only available on Unix
 

	
 
    path = os.getcwd()
 
    sys.path.insert(0, path)
 
    pkg_resources.working_set.add_entry(path)
 

	
 
    # Disable INFO logging of test database creation, restore with NOTSET
 
    logging.disable(logging.INFO)
 

	
0 comments (0 inline, 0 general)