diff --git a/brian_dashboard_manager/config.py b/brian_dashboard_manager/config.py index 3b09bf03a820469594ba41beaca629570182de49..b22ef4e4d11e7ce2764cd9b04ffdfb2f1791685b 100644 --- a/brian_dashboard_manager/config.py +++ b/brian_dashboard_manager/config.py @@ -203,7 +203,7 @@ CONFIG_SCHEMA = { "datasources": { "type": "object", "properties": { - "influxdb": {"$ref": "#definitions/influx-datasource"} + "influxdb": {"$ref": "#/definitions/influx-datasource"} }, "additionalProperties": False }, diff --git a/test/__init__.py b/test/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/test/test_gws_direct.py b/test/test_gws_direct.py index 5ff611024caa768619263c39cecc828d7eecb675..0a263c0f33a2c07ae2ec3fcd4c98020c42c1ca78 100644 --- a/test/test_gws_direct.py +++ b/test/test_gws_direct.py @@ -1,5 +1,5 @@ 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.inventory_provider.interfaces import \ get_gws_direct diff --git a/test/test_update.py b/test/test_update.py index 55df28bd65daa4c56e2ff9d4e1597db4fb79b1d1..57b09f2057e5dfb234d0de0d59d8749d05104c7e 100644 --- a/test/test_update.py +++ b/test/test_update.py @@ -3,7 +3,7 @@ import json from brian_dashboard_manager.grafana.provision import provision_folder, \ provision -from conftest import get_test_data +from test.conftest import get_test_data TEST_INTERFACES = [ { diff --git a/tox.ini b/tox.ini index f2c726d273badaeac99d80aa1b1ca0736b1422dd..d6dc28513f268b3902156002955a8931a2ea14ce 100644 --- a/tox.ini +++ b/tox.ini @@ -6,19 +6,14 @@ exclude = venv,.tox max-line-length = 120 [testenv] -setenv = - COVERAGE_PROCESS_START=.coveragerc deps = - coverage + pytest-xdist + pytest-cov flake8 -r requirements.txt commands = coverage erase - coverage run --source brian_dashboard_manager -m pytest {posargs} - coverage combine - coverage xml - coverage html - coverage report --fail-under 75 + pytest -n auto --cov brian_dashboard_manager --cov-report html --cov-report xml --cov-report term -p no:checkdocs flake8 sphinx-build -M html docs/source docs/build