From 95256a411a6254fef3fe4ae9fa7056a8175e5abc Mon Sep 17 00:00:00 2001 From: Isaiah Odhner Date: Thu, 7 Sep 2023 00:38:20 -0400 Subject: [PATCH] Kludge: ignore --snapshot-update argument --- README.md | 2 ++ src/textual_paint/args.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 0f55260..49673ec 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,8 @@ development options: outdated errors --restart-on-changes Restart the app when the source code is changed --recode-samples Open and save each file in samples/, for testing + --snapshot-update KLUDGE: IGNORE THIS ARGUMENT INTENDED FOR pytest- + textual-snapshot ``` ### Keyboard Shortcuts diff --git a/src/textual_paint/args.py b/src/textual_paint/args.py index 6ff894d..e6e1daf 100644 --- a/src/textual_paint/args.py +++ b/src/textual_paint/args.py @@ -25,6 +25,8 @@ dev_options.add_argument('--inspect-layout', action='store_true', help='Enables dev_options.add_argument('--clear-screen', action='store_true', help='Clear the screen before starting, to avoid seeing outdated errors') dev_options.add_argument('--restart-on-changes', action='store_true', help='Restart the app when the source code is changed') dev_options.add_argument('--recode-samples', action='store_true', help='Open and save each file in samples/, for testing') +# TODO: don't parse arguments when running tests! +dev_options.add_argument('--snapshot-update', action='store_true', help='KLUDGE: IGNORE THIS ARGUMENT INTENDED FOR pytest-textual-snapshot') parser.add_argument('filename', nargs='?', default=None, help='Path to a file to open. File will be created if it doesn\'t exist.')