Update test_dupes.py

This commit is contained in:
Daniel Sheppard 2020-11-24 12:22:23 -06:00 committed by GitHub
parent ea1615b4c1
commit 8db3fe1dcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,6 @@ def test_dupes(file_path):
slug = definition.get('slug')
if KNOWN_MODELS.get(slug, None) is not None:
pytest.fail(f"{file_path} is a duplicate device_type for {slug}")
pytest.fail(f"{file_path} is a duplicate device_type for {slug}", False)
KNOWN_MODELS[slug] = definition.get('model')