Menu

#1041 httpie

Missing_Dependency
open
nobody
None
5
2016-02-23
2014-10-04
atlauren
No

"HTTPie is a command line HTTP client, a user-friendly cURL replacement. "
https://github.com/jakubroztocil/httpie

Discussion

  • Hanspeter Niederstrasser

    For anyone trying to package, it seems straightforward using setuptools-tng. But a test fails:

    ======================================================================
    FAIL: test_session_read_only (__main__.SessionTest)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "tests/tests.py", line 1576, in test_session_read_only
        self.assertDictEqual(r1.json, r3.json)
    AssertionError: {u'headers': {u'X-Request-Id': u'b43bb9a9-13cc-468b-9363-cf96cf2ff305', u'Accept [truncated]... != {u'headers': {u'X-Request-Id': u'14fc8806-6e60-4dec-a58d-a9053aa8e569', u'Accept [truncated]...
      {u'args': {},
       u'headers': {u'Accept': u'*/*',
                    u'Accept-Encoding': u'gzip, deflate',
                    u'Authorization': u'Basic dXNlcm5hbWU6cGFzc3dvcmQ=',
                    u'Connection': u'close',
                    u'Cookie': u'hello=world',
                    u'Hello': u'World',
                    u'Host': u'httpbin.org',
                    u'User-Agent': u'HTTPie/0.8.0',
    
    -               u'X-Request-Id': u'b43bb9a9-13cc-468b-9363-cf96cf2ff305'},
    +               u'X-Request-Id': u'14fc8806-6e60-4dec-a58d-a9053aa8e569'},
       u'url': u'http://httpbin.org/get'}
    

    Tests in the current release also connect to the internet, but that's apparently been changed to use a local 'server' in git.

     
  • Hanspeter Niederstrasser

    • Group: Awaiting_Packaging --> Missing_Dependency
     
  • Hanspeter Niederstrasser

    As of version httpie-0.9.3, it requires pytest-httpbin and pytest-cov to pass tests.

     

Log in to post a comment.

MongoDB Logo MongoDB