On an empty test.yaml, make sure the config object is an
empty dict, and not None.
self.readers = []
# Load the test configuration.
+ self.config = None
self.load_config()
self.suricata_config.load_config(self.get_suricata_yaml_path())
if os.path.exists(os.path.join(self.directory, "test.yaml")):
self.config = yaml.safe_load(
open(os.path.join(self.directory, "test.yaml"), "rb"))
- else:
+ if self.config is None:
self.config = {}
def setup(self):