Telethon unit tests + tidyup

This commit is contained in:
Patrick Robertson
2025-03-26 22:53:27 +04:00
parent 17d2d14680
commit 95ea9fb231
5 changed files with 68 additions and 16 deletions

View File

@@ -4,12 +4,6 @@ import argparse
import json
def example_validator(value):
if "example" not in value:
raise argparse.ArgumentTypeError(f"{value} is not a valid value for this argument")
return value
def positive_number(value):
if value < 0:
raise argparse.ArgumentTypeError(f"{value} is not a positive number")