From 78e6fe80f752249da1fc67622246f632a73afd34 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Tue, 7 Apr 2020 16:14:16 +0100 Subject: [PATCH] Switch to using pytest-cov for coverage --- poetry.lock | 21 ++++++++++++++++++++- pyproject.toml | 2 +- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/poetry.lock b/poetry.lock index f3095321..7ae07a81 100644 --- a/poetry.lock +++ b/poetry.lock @@ -345,6 +345,21 @@ version = ">=0.12" checkqa-mypy = ["mypy (v0.761)"] testing = ["argcomplete", "hypothesis (>=3.56)", "mock", "nose", "requests", "xmlschema"] +[[package]] +category = "dev" +description = "Pytest plugin for measuring coverage." +name = "pytest-cov" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "2.8.1" + +[package.dependencies] +coverage = ">=4.4" +pytest = ">=3.6" + +[package.extras] +testing = ["fields", "hunter", "process-tests (2.0.2)", "six", "virtualenv"] + [[package]] category = "dev" description = "Alternative regular expression module, to replace re." @@ -440,7 +455,7 @@ docs = ["sphinx", "jaraco.packaging (>=3.2)", "rst.linker (>=1.9)"] testing = ["jaraco.itertools", "func-timeout"] [metadata] -content-hash = "441a80f0023a165465474e10d558894ceac355fb83de6716c521221330629f89" +content-hash = "e2ca3a2c87a4e66a483d97c213496da4d8980c94c2ab868a791bf206c8cf02d4" python-versions = "^3.6" [metadata.files] @@ -700,6 +715,10 @@ pytest = [ {file = "pytest-5.4.1-py3-none-any.whl", hash = "sha256:0e5b30f5cb04e887b91b1ee519fa3d89049595f428c1db76e73bd7f17b09b172"}, {file = "pytest-5.4.1.tar.gz", hash = "sha256:84dde37075b8805f3d1f392cc47e38a0e59518fb46a431cfdaf7cf1ce805f970"}, ] +pytest-cov = [ + {file = "pytest-cov-2.8.1.tar.gz", hash = "sha256:cc6742d8bac45070217169f5f72ceee1e0e55b0221f54bcf24845972d3a47f2b"}, + {file = "pytest_cov-2.8.1-py2.py3-none-any.whl", hash = "sha256:cdbdef4f870408ebdbfeb44e63e07eb18bb4619fae852f6e760645fa36172626"}, +] regex = [ {file = "regex-2020.4.4-cp27-cp27m-win32.whl", hash = "sha256:90742c6ff121a9c5b261b9b215cb476eea97df98ea82037ec8ac95d1be7a034f"}, {file = "regex-2020.4.4-cp27-cp27m-win_amd64.whl", hash = "sha256:24f4f4062eb16c5bbfff6a22312e8eab92c2c99c51a02e39b4eae54ce8255cd1"}, diff --git a/pyproject.toml b/pyproject.toml index 11941d1b..d385e994 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,7 @@ zeroconf = ">=0.24.5,<0.26.0" [tool.poetry.dev-dependencies] pytest = "^5.2" black = {version = "^19.10b0",allow-prereleases = true} -coverage = "^5.0.4" +pytest-cov = "^2.8.1" numpy = "^1.18.2" [build-system]