From 313f00e5d37ce427f2464a9e9011364348e76d1e Mon Sep 17 00:00:00 2001 From: MaXFeeD Date: Tue, 22 Apr 2025 14:19:29 +0300 Subject: [PATCH] Removed prompt tests (unnecessary) --- src/icmtoolchain/prompt.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/icmtoolchain/prompt.py b/src/icmtoolchain/prompt.py index 2a8a5b6..cd62b19 100644 --- a/src/icmtoolchain/prompt.py +++ b/src/icmtoolchain/prompt.py @@ -451,20 +451,3 @@ class Review: except (KeyboardInterrupt, EOFError): if prints_abort: pretty_print_attention("Abort.") - -if __name__ == "__main__": - from random import randint - templates_available = randint(0, 1) == 0 - results = Review( - template=lambda review: Select( - "Which template should be used?", - variants=["Mod Template (../toolchain-mod-template)", "Modding Tools Template (../template-assistant)"], - explanation="Templates are used to provide initial project description, create initial files, and more." - ) if templates_available else None, - name=Input("Decide a name for your project:", hint="Template Mod"), - author=Input("Author who crafted this creation:", hint="Reider746"), - version=Input("What version a project starts from:", hint="1.0"), - description=Input("Describe this masterpiece in one sentence:"), - client_side=Confirm("Is it a client mod that not requires server?", default_value=False) - ).request_safe() - print(results)