aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-06-07 22:30:11 +0300
committerGravatar Hassan Abouelela <[email protected]>2021-06-07 22:30:11 +0300
commitfb053e488308885a7980812d5c790b9fb33ea575 (patch)
tree08e389910911dd3020f6100ef9dc5b9993b3966c
parentAdds Fast-Test Task (diff)
Adds Tests To Coverage Source
Signed-off-by: Hassan Abouelela <[email protected]>
-rw-r--r--.github/workflows/lint-test.yml2
-rw-r--r--poetry.lock14
-rw-r--r--pyproject.toml2
3 files changed, 9 insertions, 9 deletions
diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml
index 370b0b38b..35e02f0d3 100644
--- a/.github/workflows/lint-test.yml
+++ b/.github/workflows/lint-test.yml
@@ -99,7 +99,7 @@ jobs:
- name: Run tests and generate coverage report
run: |
- pytest -n auto --cov bot --disable-warnings -q
+ pytest -n auto --cov bot --cov tests --disable-warnings -q
# This step will publish the coverage reports coveralls.io and
# print a "job" link in the output of the GitHub Action
diff --git a/poetry.lock b/poetry.lock
index a671d8a35..290746cc3 100644
--- a/poetry.lock
+++ b/poetry.lock
@@ -325,7 +325,7 @@ testing = ["pre-commit"]
[[package]]
name = "fakeredis"
-version = "1.5.1"
+version = "1.5.2"
description = "Fake implementation of redis API for testing purposes."
category = "main"
optional = false
@@ -337,7 +337,7 @@ six = ">=1.12"
sortedcontainers = "*"
[package.extras]
-aioredis = ["aioredis"]
+aioredis = ["aioredis (<2)"]
lua = ["lupa"]
[[package]]
@@ -497,7 +497,7 @@ pyreadline = {version = "*", markers = "sys_platform == \"win32\""}
[[package]]
name = "identify"
-version = "2.2.9"
+version = "2.2.10"
description = "File identification library for Python"
category = "dev"
optional = false
@@ -1272,8 +1272,8 @@ execnet = [
{file = "execnet-1.8.1.tar.gz", hash = "sha256:7e3c2cdb6389542a91e9855a9cc7545fbed679e96f8808bcbb1beb325345b189"},
]
fakeredis = [
- {file = "fakeredis-1.5.1-py3-none-any.whl", hash = "sha256:afeb843b031697b3faff0eef8eedadef110741486b37e2bfb95167617785040f"},
- {file = "fakeredis-1.5.1.tar.gz", hash = "sha256:7f85faf640a0da564d8342a7d62936b07f23f4a85f756118fbd35b55f64f281c"},
+ {file = "fakeredis-1.5.2-py3-none-any.whl", hash = "sha256:f1ffdb134538e6d7c909ddfb4fc5edeb4a73d0ea07245bc69b8135fbc4144b04"},
+ {file = "fakeredis-1.5.2.tar.gz", hash = "sha256:18fc1808d2ce72169d3f11acdb524a00ef96bd29970c6d34cfeb2edb3fc0c020"},
]
feedparser = [
{file = "feedparser-6.0.2-py3-none-any.whl", hash = "sha256:f596c4b34fb3e2dc7e6ac3a8191603841e8d5d267210064e94d4238737452ddd"},
@@ -1370,8 +1370,8 @@ humanfriendly = [
{file = "humanfriendly-9.1.tar.gz", hash = "sha256:066562956639ab21ff2676d1fda0b5987e985c534fc76700a19bd54bcb81121d"},
]
identify = [
- {file = "identify-2.2.9-py2.py3-none-any.whl", hash = "sha256:96c57d493184daecc7299acdeef0ad7771c18a59931ea927942df393688fe849"},
- {file = "identify-2.2.9.tar.gz", hash = "sha256:3a8493cf49cfe4b28d50865e38f942c11be07a7b0aab8e715073e17f145caacc"},
+ {file = "identify-2.2.10-py2.py3-none-any.whl", hash = "sha256:18d0c531ee3dbc112fa6181f34faa179de3f57ea57ae2899754f16a7e0ff6421"},
+ {file = "identify-2.2.10.tar.gz", hash = "sha256:5b41f71471bc738e7b586308c3fca172f78940195cb3bf6734c1e66fdac49306"},
]
idna = [
{file = "idna-3.2-py3-none-any.whl", hash = "sha256:14475042e284991034cb48e06f6851428fb14c4dc953acd9be9a5e95c7b6dd7a"},
diff --git a/pyproject.toml b/pyproject.toml
index 774fe075c..12c37348f 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -62,6 +62,6 @@ precommit = "pre-commit install"
build = "docker build -t ghcr.io/python-discord/bot:latest -f Dockerfile ."
push = "docker push ghcr.io/python-discord/bot:latest"
fast-test = "pytest -n auto"
-test = "pytest -n auto --cov-report= --cov bot"
+test = "pytest -n auto --cov-report= --cov bot --cov tests"
html = "coverage html"
report = "coverage report"