This commit is contained in:
Aayush Goel
2023-07-11 00:59:21 +05:30
83 changed files with 769 additions and 759 deletions

View File

@@ -8,12 +8,14 @@
import os
import sys
import logging
import textwrap
import subprocess
from pathlib import Path
import pytest
from fixtures import *
logger = logging.getLogger(__name__)
CD = Path(__file__).resolve().parent
@@ -69,7 +71,7 @@ def test_bulk_process(tmp_path):
def run_program(script_path, args):
args = [sys.executable] + [script_path] + args
print(f"running: '{args}'")
logger.debug("running: %r", args)
return subprocess.run(args, stdout=subprocess.PIPE)
@@ -169,7 +171,7 @@ def test_detect_duplicate_features(tmpdir):
"""
The rule_overlaps list represents the number of overlaps between each rule in the RULESET.
An overlap includes a rule overlap with itself.
The scripts
The scripts
The overlaps are like:
- Rule 0 has zero overlaps in RULESET
- Rule 1 overlaps with 3 other rules in RULESET