Project

General

Profile

« Previous | Next » 

Revision 9dda3aa9

Added by koszko over 1 year ago

make pytest try to load the tested modules from sources if they are present

View differences:

conftest.py
1
# SPDX-License-Identifier: CC0-1.0
2

  
3
# Copyright (C) 2022 Wojtek Kosior <koszko@koszko.org>
4
#
5
# Available under the terms of Creative Commons Zero v1.0 Universal.
6

  
7
import sys
8
from pathlib import Path
9

  
10
here = Path(__file__).resolve().parent
11
sys.path.insert(0, str(here / 'src'))

Also available in: Unified diff