mirror of
https://github.com/netbox-community/devicetype-library.git
synced 2024-12-22 23:23:20 +01:00
Add a simple environment test for sanity checking
This commit is contained in:
parent
268d8cc43c
commit
3e36dc4c4c
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user