mirror of
https://github.com/httpie/cli.git
synced 2025-08-09 10:34:55 +02:00
Merge branch 'main-module-convention' of https://github.com/gandaro/httpie into gandaro-main-module-convention
Renamed httpie.httpie to httpie.__main__ so that one can invoke it via python -m httpie.
This commit is contained in:
5
tests.py
5
tests.py
@ -1,7 +1,6 @@
|
||||
from functools import partial
|
||||
import unittest
|
||||
from StringIO import StringIO
|
||||
from httpie import httpie
|
||||
from httpie import __main__
|
||||
|
||||
|
||||
TERMINAL_COLOR_END = '\x1b[39m'
|
||||
@ -14,7 +13,7 @@ def http(*args, **kwargs):
|
||||
}
|
||||
http_kwargs.update(kwargs)
|
||||
stdout = http_kwargs.setdefault('stdout', StringIO())
|
||||
httpie.main(args=args, **http_kwargs)
|
||||
__main__.main(args=args, **http_kwargs)
|
||||
return stdout.getvalue()
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user