Skip to content

Commit

Permalink
Remove dependency on
Browse files Browse the repository at this point in the history
version_control_config for testing
using --mode selected.
  • Loading branch information
pyth0n1c committed Sep 20, 2023
1 parent d82df79 commit b8648be
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions contentctl/objects/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,9 +537,8 @@ def validate_detections_list(cls, v, values):
)
for detection in v:
try:
full_path = os.path.join(values['version_control_config'].repo_path, detection)
if not pathlib.Path(full_path).exists():
all_errors.append(full_path)
if not pathlib.Path(detection).exists():
all_errors.append(detection)
except Exception as e:
all_errors.append(
f"Unexpected error validating path '{detection}': {str(e)}"
Expand Down

0 comments on commit b8648be

Please sign in to comment.