Sourcing python-remove-tests-dir-hook Sourcing python-catch-conflicts-hook.sh Sourcing python-remove-bin-bytecode-hook.sh Sourcing setuptools-build-hook Using setuptoolsBuildPhase Using setuptoolsShellHook Sourcing pip-install-hook Using pipInstallPhase Sourcing python-imports-check-hook.sh Using pythonImportsCheckPhase Sourcing python-namespaces-hook Sourcing setuptools-check-hook @nix { "action": "setPhase", "phase": "unpackPhase" } unpacking sources unpacking source archive /nix/store/54bbk8114ybl3b2qys2sd9l9w6a18sz8-httpretty-1.1.4.tar.gz source root is httpretty-1.1.4 setting SOURCE_DATE_EPOCH to timestamp 1629142528 of file httpretty-1.1.4/setup.cfg @nix { "action": "setPhase", "phase": "patchPhase" } patching sources @nix { "action": "setPhase", "phase": "configurePhase" } configuring no configure script, doing nothing @nix { "action": "setPhase", "phase": "buildPhase" } building Executing setuptoolsBuildPhase running bdist_wheel running build running build_py creating build creating build/lib creating build/lib/httpretty copying httpretty/core.py -> build/lib/httpretty copying httpretty/compat.py -> build/lib/httpretty copying httpretty/errors.py -> build/lib/httpretty copying httpretty/version.py -> build/lib/httpretty copying httpretty/__init__.py -> build/lib/httpretty copying httpretty/http.py -> build/lib/httpretty copying httpretty/utils.py -> build/lib/httpretty installing to build/bdist.linux-x86_64/wheel running install running install_lib creating build/bdist.linux-x86_64 creating build/bdist.linux-x86_64/wheel creating build/bdist.linux-x86_64/wheel/httpretty copying build/lib/httpretty/core.py -> build/bdist.linux-x86_64/wheel/httpretty copying build/lib/httpretty/compat.py -> build/bdist.linux-x86_64/wheel/httpretty copying build/lib/httpretty/errors.py -> build/bdist.linux-x86_64/wheel/httpretty copying build/lib/httpretty/version.py -> build/bdist.linux-x86_64/wheel/httpretty copying build/lib/httpretty/__init__.py -> build/bdist.linux-x86_64/wheel/httpretty copying build/lib/httpretty/http.py -> build/bdist.linux-x86_64/wheel/httpretty copying build/lib/httpretty/utils.py -> build/bdist.linux-x86_64/wheel/httpretty running install_egg_info running egg_info writing httpretty.egg-info/PKG-INFO writing dependency_links to httpretty.egg-info/dependency_links.txt writing top-level names to httpretty.egg-info/top_level.txt reading manifest file 'httpretty.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'COPYING' writing manifest file 'httpretty.egg-info/SOURCES.txt' Copying httpretty.egg-info to build/bdist.linux-x86_64/wheel/httpretty-1.1.4-py3.7.egg-info running install_scripts adding license file "COPYING" (matched pattern "COPYING*") creating build/bdist.linux-x86_64/wheel/httpretty-1.1.4.dist-info/WHEEL creating 'dist/httpretty-1.1.4-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it adding 'httpretty/__init__.py' adding 'httpretty/compat.py' adding 'httpretty/core.py' adding 'httpretty/errors.py' adding 'httpretty/http.py' adding 'httpretty/utils.py' adding 'httpretty/version.py' adding 'httpretty-1.1.4.dist-info/COPYING' adding 'httpretty-1.1.4.dist-info/METADATA' adding 'httpretty-1.1.4.dist-info/WHEEL' adding 'httpretty-1.1.4.dist-info/top_level.txt' adding 'httpretty-1.1.4.dist-info/RECORD' removing build/bdist.linux-x86_64/wheel Finished executing setuptoolsBuildPhase @nix { "action": "setPhase", "phase": "installPhase" } installing Executing pipInstallPhase /build/httpretty-1.1.4/dist /build/httpretty-1.1.4 Processing ./httpretty-1.1.4-py3-none-any.whl Installing collected packages: httpretty Successfully installed httpretty-1.1.4 /build/httpretty-1.1.4 Finished executing pipInstallPhase @nix { "action": "setPhase", "phase": "fixupPhase" } post-installation fixup shrinking RPATHs of ELF executables and libraries in /nix/store/1jxzz8jbk0waxg3l80ynbvrqakanw8w8-python3.7-httpretty-1.1.4 strip is /nix/store/a4mmjm3bblxwp8h53bcfx3dly80ib0ba-binutils-2.35.1/bin/strip stripping (with command strip and flags -S) in /nix/store/1jxzz8jbk0waxg3l80ynbvrqakanw8w8-python3.7-httpretty-1.1.4/lib patching script interpreter paths in /nix/store/1jxzz8jbk0waxg3l80ynbvrqakanw8w8-python3.7-httpretty-1.1.4 checking for references to /build/ in /nix/store/1jxzz8jbk0waxg3l80ynbvrqakanw8w8-python3.7-httpretty-1.1.4... Executing pythonRemoveTestsDir Finished executing pythonRemoveTestsDir @nix { "action": "setPhase", "phase": "installCheckPhase" } running install tests #1 HTTPrettyRequest is a BaseHTTPRequestHandler that replaces real socket file descriptors with in-memory ones ... passed #2 HTTPrettyRequest#parse_querystring should parse unicode data ... passed #3 HTTPrettyRequest#parse_request_body recognizes the content-type `application/json` and parses it ... passed #4 HTTPrettyRequest#parse_request_body recognizes the content-type `text/json` and parses it ... passed #5 HTTPrettyRequest#parse_request_body recognizes the content-type `application/x-www-form-urlencoded` and parses it ... passed #6 HTTPrettyRequest#parse_request_body returns the value as is if the Content-Type is not recognized ... passed #7 HTTPrettyRequest should have a forward_and_trace-friendly string representation ... passed #8 FakeSSLSocket is a simpel wrapper around its own socket, which was designed to be a HTTPretty fake socket ... passed #9 fakesock.socket#ssl should take a socket instance and return itself ... passed #10 fakesock.socket#sendall handles paths starting with // well ... passed #11 URIMatcher response querystring ... passed #12 URIMatcher equality check should check querystring ... passed #13 fakesock.socket#getpeercert should return a hardcoded fake certificate ... passed #14 fakesock.socket#close should close the actual socket in case it's not http and __truesock_is_connected__ is True ... passed #15 fakesock.socket#connect should open a real connection if the given port is not a potential http port ... real call to socket.connect() for ('somewhere.com', 42) passed #16 fakesock.socket#makefile should set the mode, bufsize and return its mocked file descriptor ... passed #17 fakesock.socket#real_sendall calls truesock#connect and bails out when not http ... passed #18 fakesock.socket#real_sendall should continue if the socket error was EAGAIN ... real call to socket.connect() for ('1.2.3.4', 42) passed #19 fakesock.socket#real_sendall should continue if the socket error was EAGAIN ... real call to socket.connect() for ('1.2.3.4', 42) passed #20 fakesock.socket#real_sendall sends data and buffers the response in the file descriptor ... real call to socket.connect() for ('1.2.3.4', 42) passed #21 fakesock.socket#real_sendall should connect before sending data ... real call to socket.connect() for ('foobar.com', 4000) passed #22 fakesock.socket#sendall should call real_sendall when not parsing headers and there is no entry ... real call to socket.connect() for ('foo.com', 80) passed #23 fakesock.socket#sendall should call real_sendall when not ... real call to socket.connect() for ('foo.com', 80) passed #24 fakesock.socket#sendall should call real_sendall when there is no entry ... real call to socket.connect() for ('foo.com', 80) passed #25 fakesock.socket#sendall should create an entry if it's given a valid request line ... real call to socket.connect() for ('foo.com', 80) passed #26 fakesock.socket#sendall should create an entry if it's given a valid request line ... real call to socket.connect() for ('foo.com', 80) passed #27 parse_requestline should parse the CONNECT method appropriately ... passed #28 HTTPretty should raise proper exception on inconsistent Content-Length / registered response body ... passed #29 HTTPretty.last_request is a dummy object by default ... passed #30 HTTPretty supports N status codes ... passed #31 tests.unit.test_httpretty.test_uri_info_full_url ... passed #32 Test that URIInfo.__eq__ method ignores case for ... passed #33 tests.unit.test_httpretty.test_global_boolean_enabled ... passed #34 tests.unit.test_httpretty.test_py3kobject_implements_valid__repr__based_on__str__ ... passed #35 tests.unit.test_httpretty.test_Entry_class_normalizes_headers ... passed #36 tests.unit.test_httpretty.test_Entry_class_counts_multibyte_characters_in_bytes ... passed #37 tests.unit.test_httpretty.test_Entry_class_counts_dynamic ... passed #38 tests.unit.test_httpretty.test_fake_socket_passes_through_setblocking ... passed #39 tests.unit.test_httpretty.test_fake_socket_passes_through_fileno ... passed #40 tests.unit.test_httpretty.test_fake_socket_passes_through_getsockopt ... passed #41 tests.unit.test_httpretty.test_fake_socket_passes_through_bind ... passed #42 tests.unit.test_httpretty.test_fake_socket_passes_through_connect_ex ... passed #43 tests.unit.test_httpretty.test_fake_socket_passes_through_listen ... passed #44 tests.unit.test_httpretty.test_fake_socket_passes_through_getpeername ... passed #45 tests.unit.test_httpretty.test_fake_socket_passes_through_getsockname ... passed #46 tests.unit.test_httpretty.test_fake_socket_passes_through_gettimeout ... passed #47 tests.unit.test_httpretty.test_fake_socket_passes_through_shutdown ... passed #48 tests.unit.test_httpretty.test_unix_socket ... real call to socket.connect() for ./not-exist-socket passed #49 A content-type of application/json should parse a valid json body ... passed #50 A content-type of application/json with an invalid json body should return the content unaltered ... passed #51 A content-type of x-www-form-urlencoded with a valid queryparam body should return parsed content ... passed #52 A non-handled content type request's post body should return the content unaltered ... passed #53 Some versions of python accidentally internally shadowed the SockType ... passed #54 tests.unit.test_httpretty.test_socktype_good_python_version ... passed #55 HTTPretty should allow registering regexes with requests ... passed #56 HTTPretty should allow registering regexes with requests (ssl version) ... passed #57 httpretty.has_request() correctly detects whether or not a request has been made ... passed #58 httpretty.last_request() should return httpretty.core.last_request ... passed #59 httpretty.latest_requests() should return httpretty.core.latest_requests ... passed Name Stmts Miss Branch BrPart Cover --------------------------------------------------------- httpretty/__init__.py 37 0 0 0 100% httpretty/compat.py 17 0 0 0 100% httpretty/core.py 985 255 304 71 70% httpretty/errors.py 16 10 6 0 27% httpretty/http.py 28 0 4 1 97% httpretty/utils.py 8 0 4 0 100% httpretty/version.py 1 0 0 0 100% --------------------------------------------------------- TOTAL 1092 265 318 72 71% ----------------------------------------------------------------------------- 59 tests run in 0.252 seconds (59 tests passed) @nix { "action": "setPhase", "phase": "pythonCatchConflictsPhase" } pythonCatchConflictsPhase @nix { "action": "setPhase", "phase": "pythonRemoveBinBytecodePhase" } pythonRemoveBinBytecodePhase @nix { "action": "setPhase", "phase": "pythonImportsCheckPhase" } pythonImportsCheckPhase Executing pythonImportsCheckPhase @nix { "action": "setPhase", "phase": "pytestcachePhase" } pytestcachePhase