From 3e36dc4c4ccc5769a744fdbc4dcd1f7523ebadcc Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 19 Dec 2019 11:14:27 -0500 Subject: [PATCH] Add a simple environment test for sanity checking --- tests/test_definitions.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/test_definitions.py b/tests/test_definitions.py index f66f2bd2..c227a1ac 100644 --- a/tests/test_definitions.py +++ b/tests/test_definitions.py @@ -18,6 +18,17 @@ with open("tests/schema.json") as schema_file: schema = json.loads(schema_file.read()) +def test_environment(): + """ + Run basic sanity checks on the environment to ensure tests are running correctly. + """ + # Validate that definition files exist + assert _get_definition_files(), "No definition files found!" + + # Validate that the schema exists + assert schema, "Schema definition is empty!" + + @pytest.mark.parametrize("file_path", _get_definition_files()) def test_definition(file_path): """