Skip to content

Instantly share code, notes, and snippets.

@r-rmcgibbo
Created March 20, 2021 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r-rmcgibbo/637ebb35749c2fd03098d0ee667876b8 to your computer and use it in GitHub Desktop.
Save r-rmcgibbo/637ebb35749c2fd03098d0ee667876b8 to your computer and use it in GitHub Desktop.
system: aarch64-linux | build_time: 3 seconds | https://github.com/NixOS/nixpkgs/pull/117004
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/5i392p8krsl5b7acrrms5z2cb597dsy5-httpretty-1.0.5.tar.gz
source root is httpretty-1.0.5
setting SOURCE_DATE_EPOCH to timestamp 1609901011 of file httpretty-1.0.5/setup.cfg
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@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/errors.py -> build/lib/httpretty
copying httpretty/utils.py -> build/lib/httpretty
copying httpretty/version.py -> build/lib/httpretty
copying httpretty/__init__.py -> build/lib/httpretty
copying httpretty/core.py -> build/lib/httpretty
copying httpretty/compat.py -> build/lib/httpretty
copying httpretty/http.py -> build/lib/httpretty
installing to build/bdist.linux-aarch64/wheel
running install
running install_lib
creating build/bdist.linux-aarch64
creating build/bdist.linux-aarch64/wheel
creating build/bdist.linux-aarch64/wheel/httpretty
copying build/lib/httpretty/errors.py -> build/bdist.linux-aarch64/wheel/httpretty
copying build/lib/httpretty/utils.py -> build/bdist.linux-aarch64/wheel/httpretty
copying build/lib/httpretty/version.py -> build/bdist.linux-aarch64/wheel/httpretty
copying build/lib/httpretty/__init__.py -> build/bdist.linux-aarch64/wheel/httpretty
copying build/lib/httpretty/core.py -> build/bdist.linux-aarch64/wheel/httpretty
copying build/lib/httpretty/compat.py -> build/bdist.linux-aarch64/wheel/httpretty
copying build/lib/httpretty/http.py -> build/bdist.linux-aarch64/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'
writing manifest file 'httpretty.egg-info/SOURCES.txt'
Copying httpretty.egg-info to build/bdist.linux-aarch64/wheel/httpretty-1.0.5-py3.9.egg-info
running install_scripts
adding license file "COPYING" (matched pattern "COPYING*")
creating build/bdist.linux-aarch64/wheel/httpretty-1.0.5.dist-info/WHEEL
creating 'dist/httpretty-1.0.5-py3-none-any.whl' and adding 'build/bdist.linux-aarch64/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.0.5.dist-info/COPYING'
adding 'httpretty-1.0.5.dist-info/METADATA'
adding 'httpretty-1.0.5.dist-info/WHEEL'
adding 'httpretty-1.0.5.dist-info/top_level.txt'
adding 'httpretty-1.0.5.dist-info/RECORD'
removing build/bdist.linux-aarch64/wheel
Finished executing setuptoolsBuildPhase
@nix { "action": "setPhase", "phase": "installPhase" }
installing
Executing pipInstallPhase
/build/httpretty-1.0.5/dist /build/httpretty-1.0.5
Processing ./httpretty-1.0.5-py3-none-any.whl
Installing collected packages: httpretty
Successfully installed httpretty-1.0.5
/build/httpretty-1.0.5
Finished executing pipInstallPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/zb8h64rzxzkxcw4l7qd5bq76gcirvv49-python3.9-httpretty-1.0.5
strip is /nix/store/h5wgppbyv8vkla58v8zi535j5i9akly5-binutils-2.35.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/zb8h64rzxzkxcw4l7qd5bq76gcirvv49-python3.9-httpretty-1.0.5/lib
patching script interpreter paths in /nix/store/zb8h64rzxzkxcw4l7qd5bq76gcirvv49-python3.9-httpretty-1.0.5
checking for references to /build/ in /nix/store/zb8h64rzxzkxcw4l7qd5bq76gcirvv49-python3.9-httpretty-1.0.5...
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 ... 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 ... passed
#19 fakesock.socket#real_sendall should continue if the socket error was EAGAIN ... passed
#20 fakesock.socket#real_sendall sends data and buffers the response in the file descriptor ... passed
#21 fakesock.socket#real_sendall should connect before sending data ... passed
#22 fakesock.socket#sendall should call real_sendall when not parsing headers and there is no entry ... passed
#23 fakesock.socket#sendall should call real_sendall when not ... passed
#24 fakesock.socket#sendall should call real_sendall when there is no entry ... passed
#25 fakesock.socket#sendall should create an entry if it's given a valid request line ... passed
#26 fakesock.socket#sendall should create an entry if it's given a valid request line ... 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 ... 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 36 0 0 0 100%
httpretty/compat.py 17 0 0 0 100%
httpretty/core.py 870 211 270 60 71%
httpretty/errors.py 6 1 0 0 83%
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 966 212 278 61 74%
-----------------------------------------------------------------------------
59 tests run in 0.226 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment