From 8c9ab818210f2a6cba81d861a2ef4712fe1f4e4f Mon Sep 17 00:00:00 2001 From: patrcoff Date: Mon, 3 Jun 2024 23:16:05 +0100 Subject: [PATCH] fix: pyest in precommit --- run_test.sh | 1 + src/isecapipy/request_body_models/request_body_models.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/run_test.sh b/run_test.sh index 01feafb..a8f7018 100755 --- a/run_test.sh +++ b/run_test.sh @@ -1,4 +1,5 @@ #!/usr/bin/env sh +set -e if test -f "../.venv/bin/python"; then ../.venv/bin/python -m pytest tests diff --git a/src/isecapipy/request_body_models/request_body_models.py b/src/isecapipy/request_body_models/request_body_models.py index 1cfc067..dcce68c 100644 --- a/src/isecapipy/request_body_models/request_body_models.py +++ b/src/isecapipy/request_body_models/request_body_models.py @@ -212,7 +212,7 @@ class DiscoveryFilterType(BaseModel): virtualServerWilcard: int = None -class VirtDiscoveryFilterType(DiscoveryFilterType): +class VMDiscoveryFilterType(DiscoveryFilterType): """The ENUM for the DiscoveryFilterType Used in the Machines model"""