1
0
mirror of https://github.com/httpie/cli.git synced 2025-08-10 22:42:05 +02:00

Move example URL in a global variable for tests

This commit is contained in:
Mickaël Schoentgen
2021-09-01 16:52:10 +02:00
parent fdd486415a
commit 85110643e7
2 changed files with 5 additions and 4 deletions

View File

@@ -33,6 +33,8 @@ HTTP_OK_COLOR = (
'\x1b[39m\x1b[38;5;245m \x1b[39m\x1b[38;5;136mOK'
)
URL_EXAMPLE = 'http://example.org' # Note: URL never fetched
def mk_config_dir() -> Path:
dirname = tempfile.mkdtemp(prefix='httpie_config_')