From e071e0b5d9052583899370ab03d60fb304bc4f4e Mon Sep 17 00:00:00 2001 From: Roland Walker Date: Wed, 6 Aug 2025 08:02:38 -0400 Subject: [PATCH] make pager a single argument in tests --- pyproject.toml | 2 +- test/features/environment.py | 6 +----- test/features/wrappager.py | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 441ffa4e..bd989f6b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ authors = [{ name = "Mycli Core Team", email = "mycli-dev@googlegroups.com" }] urls = { homepage = "http://mycli.net" } dependencies = [ - "click >= 7.0,<8.1.8", + "click >= 7.0", "cryptography >= 1.0.0", "Pygments>=1.6", "prompt_toolkit>=3.0.6,<4.0.0", diff --git a/test/features/environment.py b/test/features/environment.py index 515a2a28..071ad368 100644 --- a/test/features/environment.py +++ b/test/features/environment.py @@ -66,11 +66,7 @@ def before_all(context): _, my_cnf = mkstemp() with open(my_cnf, "w") as f: - f.write( - "[client]\npager={0} {1} {2}\n".format( - sys.executable, os.path.join(context.package_root, "test/features/wrappager.py"), context.conf["pager_boundary"] - ) - ) + f.write("[client]\npager={0}\n".format(os.path.join(context.package_root, "test/features/wrappager.py"))) context.conf["defaults-file"] = my_cnf context.conf["myclirc"] = os.path.join(context.package_root, "test", "myclirc") diff --git a/test/features/wrappager.py b/test/features/wrappager.py index b61a7d00..4e2a20a4 100755 --- a/test/features/wrappager.py +++ b/test/features/wrappager.py @@ -14,4 +14,4 @@ def wrappager(boundary: str) -> None: if __name__ == "__main__": - wrappager(sys.argv[1]) + wrappager("---boundary---")