"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/test_meta.py" between
httpie-3.0.0.tar.gz and httpie-3.0.1.tar.gz

About: HTTPie is a command line HTTP client, a user-friendly cURL replacement, with the goal to make CLI interaction with web services as human-friendly as possible.

test_meta.py  (httpie-3.0.0):test_meta.py  (httpie-3.0.1)
from .utils import http import pytest
def test_meta_elapsed_time(httpbin, monkeypatch): from httpie.models import ELAPSED_TIME_LABEL
r = http('--meta', httpbin + '/get') from httpie.output.formatters.colors import PIE_STYLE_NAMES
for line in r.splitlines(): from .utils import http, MockEnvironment, COLOR
assert 'Elapsed time' in r
def test_meta_elapsed_time(httpbin):
r = http('--meta', httpbin + '/delay/1')
assert f'{ELAPSED_TIME_LABEL}: 1.' in r
@pytest.mark.parametrize('style', ['auto', 'fruity', *PIE_STYLE_NAMES])
def test_meta_elapsed_time_colors(httpbin, style):
r = http('--style', style, '--meta', httpbin + '/get', env=MockEnvironment(c
olors=256))
assert COLOR in r
assert ELAPSED_TIME_LABEL in r
 End of changes. 2 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)