@@ -124,7 +124,7 @@ template = "default"
124
124
type = " virtual"
125
125
126
126
[tool .hatch .envs .test .env-vars ]
127
- PYTHONPATH = " ."
127
+ PYTHONPATH = " .:src/ "
128
128
PYTHONUNBUFFERED = " 1"
129
129
SOURCE_DATE_EPOCH = " 1580601600"
130
130
@@ -133,7 +133,7 @@ SOURCE_DATE_EPOCH = "1580601600"
133
133
python = [" 3.8" , " 3.9" , " 3.10" , " 3.11" , " 3.12" ]
134
134
135
135
[tool .hatch .envs .test .scripts ]
136
- cov = " pytest --cov-report=term-missing --cov-config=pyproject.toml --cov-report=xml"
136
+ cov = " pytest --cov=pytest_databases --cov-report=xml"
137
137
debug = " cov --no-cov -s --pdb --pdbcls=IPython.core.debugger:Pdb"
138
138
no-cov = " cov --no-cov"
139
139
@@ -595,7 +595,7 @@ line-length = 120
595
595
# # Testing Tools
596
596
597
597
[tool .pytest .ini_options ]
598
- addopts = " -ra -q --doctest-glob='*.md'"
598
+ addopts = " --dist loadfile -n 2 - ra -q --doctest-glob='*.md'"
599
599
filterwarnings = [" ignore::DeprecationWarning:pkg_resources" , " ignore::DeprecationWarning:xdist.*" ]
600
600
markers = [
601
601
" mysql: MySQL Tests" ,
@@ -606,26 +606,19 @@ markers = [
606
606
" mssql: Microsoft SQL Server Tests" ,
607
607
" elasticsearch: Elasticsearch Tests" ,
608
608
]
609
- minversion = " 6.0"
610
609
testpaths = [" tests" ]
611
610
612
611
[tool .coverage .run ]
613
612
branch = true
614
- concurrency = [" multiprocessing" , " thread " ]
615
- disable_warnings = [" no-data-collected" , " module-not-measured" ]
613
+ concurrency = [" multiprocessing" ]
614
+ disable_warnings = [" no-data-collected" , " module-not-measured" , " module-not-imported " ]
616
615
omit = [
617
616
" _version.py" , # automatically created by hatch-vcs, not in repo
618
617
" src/pytest_databases/__metadata__.py" ,
619
618
" tests/*" ,
620
619
" scripts/*" ,
621
620
]
622
621
parallel = true
623
- source = [" src/pytest_databases" ]
624
- source_pkgs = [" pytest_databases" ]
625
-
626
- [tool .coverage .paths ]
627
- pytest_databases = [" src/pytest_databases" ]
628
- tests = [" tests" ]
629
622
630
623
[tool .coverage .report ]
631
624
# Regexes for lines to exclude from consideration
0 commit comments