From fe7abddd4e9a39b6f9779e16b51bd69e73e40591 Mon Sep 17 00:00:00 2001 From: thatmattlove Date: Mon, 4 Oct 2021 01:43:02 -0700 Subject: [PATCH] Fix tests --- .../configuration/tests/{test_collect.py => test_load.py} | 2 +- hyperglass/plugins/external/__init__.py | 1 + pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) rename hyperglass/configuration/tests/{test_collect.py => test_load.py} (97%) diff --git a/hyperglass/configuration/tests/test_collect.py b/hyperglass/configuration/tests/test_load.py similarity index 97% rename from hyperglass/configuration/tests/test_collect.py rename to hyperglass/configuration/tests/test_load.py index a17a5c6..dba92e9 100644 --- a/hyperglass/configuration/tests/test_collect.py +++ b/hyperglass/configuration/tests/test_load.py @@ -8,7 +8,7 @@ from pathlib import Path from hyperglass.settings import Settings # Local -from ..collect import load_config +from ..load import load_config TOML = """ test = "from toml" diff --git a/hyperglass/plugins/external/__init__.py b/hyperglass/plugins/external/__init__.py index e69de29..78c58eb 100644 --- a/hyperglass/plugins/external/__init__.py +++ b/hyperglass/plugins/external/__init__.py @@ -0,0 +1 @@ +"""Container for external plugins. External plugins are copied here on registration.""" diff --git a/pyproject.toml b/pyproject.toml index 1ec992f..e026851 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -99,7 +99,7 @@ lint = {cmd = "flake8 hyperglass", help = "Run Flake8"} sort = {cmd = "isort hyperglass", help = "Run iSort"} start = {cmd = "python3 -m hyperglass.main", help = "Start hyperglass"} start-asgi = {cmd = "uvicorn hyperglass.api:app", help = "Start hyperglass via Uvicorn"} -test = {cmd = "pytest hyperglass", help = "Run hyperglass tests"} +test = {cmd = "pytest hyperglass --ignore hyperglass/plugins/external", help = "Run hyperglass tests"} ui-build = {cmd = "python3 -m hyperglass.console build-ui", help = "Run a UI Build"} ui-dev = {cmd = "yarn --cwd ./hyperglass/ui/ dev", help = "Start the Next.JS dev server"} ui-format = {cmd = "yarn --cwd ./hyperglass/ui/ format", help = "Run Prettier"}