Added unit tests

This commit is contained in:
DefensiveDepth
2024-05-24 09:55:10 -04:00
parent d19c1a514b
commit 66725b11b3
3 changed files with 162 additions and 2 deletions

View File

@@ -86,6 +86,8 @@ def main():
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
print(f"Backing up Custom Detections and all Overrides to {OUTPUT_DIR} - {timestamp}\n")
os.makedirs(OUTPUT_DIR, exist_ok=True)
auth_credentials = get_auth_credentials(AUTH_FILE)
username, password = auth_credentials.split(':', 1)
auth = HTTPBasicAuth(username, password)