mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-30 14:58:38 +00:00
tests: make full cov plugin cwd-independent
This commit is contained in:
parent
33acb48c71
commit
6a1e03ac6f
@ -2,6 +2,8 @@ import os
|
||||
import configparser
|
||||
import pytest
|
||||
|
||||
here = os.path.abspath(os.path.dirname(__file__))
|
||||
|
||||
|
||||
enable_coverage = False
|
||||
coverage_values = []
|
||||
@ -36,7 +38,7 @@ def pytest_configure(config):
|
||||
)
|
||||
|
||||
c = configparser.ConfigParser()
|
||||
c.read('setup.cfg')
|
||||
c.read(os.path.join(here, "..", "setup.cfg"))
|
||||
fs = c['tool:full_coverage']['exclude'].split('\n')
|
||||
no_full_cov = config.option.no_full_cov + [f.strip() for f in fs]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user