Coverage for hdl_registers/test/conftest.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v6.4.4, created at 2022-09-29 22:03 +0000

1# -------------------------------------------------------------------------------------------------- 

2# Copyright (c) Lukas Vik. All rights reserved. 

3# 

4# This file is part of the hdl_registers project, a HDL register generator fast enough to be run 

5# in real time. 

6# https://hdl-registers.com 

7# https://gitlab.com/tsfpga/hdl_registers 

8# -------------------------------------------------------------------------------------------------- 

9 

10import sys 

11 

12from pathlib import Path 

13 

14# Many tests use helper methods from tsfpga. 

15# Do PYTHONPATH insert() instead of append() to prefer any local repo checkout over any pip install 

16REPO_ROOT = Path(__file__).parent.parent.parent 

17PATH_TO_TSFPGA = REPO_ROOT.parent.resolve() / "tsfpga" 

18sys.path.insert(0, str(PATH_TO_TSFPGA)) 

19 

20# pylint: disable=unused-import 

21from tsfpga.test.conftest import fixture_tmp_path # noqa: F401