Skip to content
Snippets Groups Projects
Commit 5e0b0e6d authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

Fix tests and run tests in parallel

parent 606979f3
No related branches found
No related tags found
No related merge requests found
...@@ -203,7 +203,7 @@ CONFIG_SCHEMA = { ...@@ -203,7 +203,7 @@ CONFIG_SCHEMA = {
"datasources": { "datasources": {
"type": "object", "type": "object",
"properties": { "properties": {
"influxdb": {"$ref": "#definitions/influx-datasource"} "influxdb": {"$ref": "#/definitions/influx-datasource"}
}, },
"additionalProperties": False "additionalProperties": False
}, },
......
import responses import responses
from conftest import get_test_data from test.conftest import get_test_data
from brian_dashboard_manager.templating.gws import generate_gws from brian_dashboard_manager.templating.gws import generate_gws
from brian_dashboard_manager.inventory_provider.interfaces import \ from brian_dashboard_manager.inventory_provider.interfaces import \
get_gws_direct get_gws_direct
......
...@@ -3,7 +3,7 @@ import json ...@@ -3,7 +3,7 @@ import json
from brian_dashboard_manager.grafana.provision import provision_folder, \ from brian_dashboard_manager.grafana.provision import provision_folder, \
provision provision
from conftest import get_test_data from test.conftest import get_test_data
TEST_INTERFACES = [ TEST_INTERFACES = [
{ {
......
...@@ -6,19 +6,14 @@ exclude = venv,.tox ...@@ -6,19 +6,14 @@ exclude = venv,.tox
max-line-length = 120 max-line-length = 120
[testenv] [testenv]
setenv =
COVERAGE_PROCESS_START=.coveragerc
deps = deps =
coverage pytest-xdist
pytest-cov
flake8 flake8
-r requirements.txt -r requirements.txt
commands = commands =
coverage erase coverage erase
coverage run --source brian_dashboard_manager -m pytest {posargs} pytest -n auto --cov brian_dashboard_manager --cov-report html --cov-report xml --cov-report term -p no:checkdocs
coverage combine
coverage xml
coverage html
coverage report --fail-under 75
flake8 flake8
sphinx-build -M html docs/source docs/build sphinx-build -M html docs/source docs/build
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment