Skip to content

Instantly share code, notes, and snippets.

@jaraco
Created February 19, 2018 19:26
Show Gist options
  • Save jaraco/21641e53b7af3950291742084e9c5fce to your computer and use it in GitHub Desktop.
Save jaraco/21641e53b7af3950291742084e9c5fce to your computer and use it in GitHub Desktop.
$ tox -r -- -k test_4_Auto
python recreate: /Users/jaraco/Dropbox/code/public/cherrypy/.tox/python
python develop-inst: /Users/jaraco/Dropbox/code/public/cherrypy
python installed: attrs==17.4.0,backports.unittest-mock==1.3,certifi==2018.1.18,chardet==3.0.4,cheroot==6.0.0,-e git+gh://cherrypy/cherrypy@816378ebbbcb775379293dd30c9da0bcef02e156#egg=CherryPy,codecov==2.0.15,coverage==4.5.1,graphviz==0.8.2,idna==2.6,more-itertools==4.1.0,objgraph==3.4.0,path.py==11.0,pluggy==0.6.0,portend==2.2,py==1.5.2,pytest==3.4.0,pytest-cov==2.5.1,pytest-sugar==0.9.1,pytz==2018.3,repoze.lru==0.7,requests==2.18.4,Routes==2.4.1,six==1.11.0,tempora==1.10,termcolor==1.1.0,urllib3==1.22
python runtests: PYTHONHASHSEED='3944111983'
python runtests: commands[0] | pytest -k test_4_Auto
Test session starts (platform: darwin, Python 3.7.0, pytest 3.4.0, pytest-sugar 0.9.1)
cachedir: .pytest_cache
rootdir: /Users/jaraco/Dropbox/code/public/cherrypy, inifile: pytest.ini
plugins: sugar-0.9.1, cov-2.5.1, backports.unittest-mock-1.3
cherrypy/test/test_states.py::ServerStateTests.test_4_Autoreload X 100% ██████████
----- generated xml file: /Users/jaraco/Dropbox/code/public/cherrypy/junit-test-results.xml ------
----------- coverage: platform darwin, python 3.7.0-beta-1 -----------
Name Stmts Miss Cover Missing
-------------------------------------------------------------------------------
cherrypy/__init__.py 142 41 71% 61-62, 86-88, 113-114, 141-144, 171-178, 230-231, 234-235, 245-246, 249-250, 253-254, 257-258, 261-262, 265-266, 293-295, 302-303, 325, 338-339
cherrypy/_cpchecker.py 187 144 23% 35-44, 48, 55-66, 73-92, 96-108, 112-119, 128-175, 197-213, 218-222, 228-262, 266-269, 294-305, 310-314, 319-321
cherrypy/_cpcompat.py 62 28 55% 44-83, 88, 93-94, 102-103, 124-127, 138-139, 144-145, 156
cherrypy/_cpconfig.py 83 30 64% 138, 160, 163, 170, 188, 238-254, 267, 269, 275-276, 283-285, 293-300
cherrypy/_cpdispatch.py 345 221 36% 46, 49-50, 61-69, 92-206, 211-213, 220, 236, 249-254, 262, 291, 303, 335, 358-360, 371, 380-381, 387, 399, 412, 426-435, 447, 457-458, 475-502, 517-521, 524-525, 528, 532-536, 540-617, 621-626, 669-693
cherrypy/_cperror.py 193 143 26% 153-170, 206-230, 241, 246-247, 256-310, 314, 319-338, 374-375, 378, 392-409, 412, 416, 422-425, 437-441, 483-547, 558-577, 582-590, 610-616
cherrypy/_cplogging.py 191 65 66% 135, 197-203, 217, 227, 254, 293-311, 333, 368-371, 376-377, 382, 397, 412-420, 426, 443-448, 452-471
cherrypy/_cpmodpy.py 185 185 0% 58-358
cherrypy/_cpnative_server.py 89 89 0% 3-156
cherrypy/_cpreqbody.py 451 353 22% 113-114, 123-132, 146-186, 191-220, 226-248, 253-276, 429, 438, 451-454, 461-472, 482, 485, 488, 491, 494-497, 500, 507-510, 517, 521-529, 533-542, 550-563, 572, 617-620, 624-625, 629-655, 667-713, 719-727, 734-737, 750-757, 777-848, 852-869, 873-889, 892-921, 958-962, 968, 979-1003
cherrypy/_cprequest.py 373 105 72% 49, 66-67, 105-112, 114, 126-127, 141-146, 153-156, 163-166, 171-173, 576, 596-610, 614, 618-619, 632-637, 641-646, 652, 683, 702-703, 710-713, 732-735, 741-743, 746, 762-771, 776-781, 807, 814, 829-835, 895, 900, 912-913, 925-926, 931-932, 945-951
cherrypy/_cpserver.py 96 28 71% 35, 127, 166, 178, 180, 185-187, 189-191, 196-197, 211-233
cherrypy/_cptools.py 225 76 66% 42, 45-47, 75, 78, 93-98, 103, 127, 181-184, 188-189, 197-201, 227-230, 233-237, 248, 256, 286, 294-316, 320-330, 373-393, 405-411, 417-420, 467-472
cherrypy/_cptree.py 131 26 80% 61, 65, 90, 113, 117, 148-149, 200, 211-216, 244-245, 253-258, 265, 277, 282-283, 291-293
cherrypy/_cpwsgi.py 234 92 61% 25-35, 78-80, 83-90, 107-138, 182, 192, 195-228, 242-243, 251, 256-257, 259-262, 278-280, 290, 302-306, 360, 371, 382-384, 430, 455-467
cherrypy/_cpwsgi_server.py 33 7 79% 86, 88-94, 96-97, 108
cherrypy/_helper.py 136 94 31% 31, 39-40, 141-189, 219-284, 289-310, 330-332
cherrypy/daemon.py 59 17 71% 29, 34-35, 43, 46-48, 51-63, 68-70, 102-103
cherrypy/lib/__init__.py 49 40 18% 12-20, 26-44, 55-56, 60, 64-70, 80-87, 92-96
cherrypy/lib/auth.py 48 41 15% 21, 30-75, 93-103, 116-126
cherrypy/lib/auth_basic.py 29 21 28% 40-44, 69-90
cherrypy/lib/auth_digest.py 161 132 18% 35, 46, 60-66, 78-81, 97-108, 126-130, 135, 145, 148-200, 205, 222-232, 240-248, 259-267, 284-307, 313-324, 354-393
cherrypy/lib/caching.py 230 197 14% 53, 57, 61, 65, 84-119, 123-129, 170-176, 180-187, 198-214, 218-233, 237-263, 267-268, 294-384, 391-414, 442-473
cherrypy/lib/covercp.py 159 159 0% 23-391
cherrypy/lib/cpstats.py 244 244 0% 190-695
cherrypy/lib/cptools.py 346 295 15% 34-92, 102-120, 135-151, 177-216, 226-232, 237-241, 268-282, 293, 297, 300, 303, 306, 310, 325-338, 342-348, 353-374, 377-379, 382-405, 409-412, 428, 433-434, 439-455, 461-468, 477, 481-484, 488-490, 499-512, 539-587, 593-594, 597-598, 604-624, 636-640
cherrypy/lib/encoding.py 255 170 33% 30-38, 43, 46, 49, 52-55, 58-59, 62-64, 79, 86, 96-106, 111, 118-119, 129, 132, 146, 153, 157-166, 170, 176-217, 231, 233, 239, 246, 251-260, 266, 277-302, 306-314, 336-425
cherrypy/lib/gctools.py 137 108 21% 8-9, 23-26, 30-54, 58-62, 66-87, 91-99, 103, 112, 115, 123-131, 149, 153-218
cherrypy/lib/httpauth.py 120 86 28% 108-116, 122-128, 135-137, 147, 155-174, 178-179, 193-204, 229-235, 239-254, 261-277, 285-325, 340-346, 353-361, 387-388
cherrypy/lib/httputil.py 255 107 58% 48, 59-63, 68, 82-126, 136, 140, 143, 150, 153, 184-197, 202-205, 208-211, 214-217, 232, 247-253, 285-286, 290-291, 295, 300, 338-355, 372-373, 389, 397, 404-405, 412-413, 420-421, 425-426, 433-436, 458-459, 494, 531-543, 570
cherrypy/lib/jsontools.py 36 30 17% 7-12, 38-54, 58-59, 73-88
cherrypy/lib/lockfile.py 76 49 36% 14-15, 25, 44-49, 52, 55, 65-87, 90-94, 100-103, 114-117, 120-124, 130-134
cherrypy/lib/locking.py 22 11 50% 6, 15, 22, 25, 37-41, 44-47
cherrypy/lib/profiler.py 100 100 0% 36-221
cherrypy/lib/reprconf.py 317 168 47% 26-27, 31-32, 45, 98-104, 115, 139, 141, 155, 173-174, 211-216, 222, 234-238, 242-250, 253-256, 259-277, 280-283, 286, 289, 292-296, 299, 302-322, 325-326, 329-330, 333-334, 337, 340, 343, 351, 359-362, 368, 371, 378-400, 403-426, 429, 438, 442, 445-466, 472-473, 476-477, 480, 483, 486, 489-490, 493, 499, 501, 510-511, 518-531
cherrypy/lib/sessions.py 411 314 24% 132, 135-137, 176-201, 209, 213-214, 217-244, 248, 252, 256-277, 281-308, 312-314, 320-322, 325-327, 330-332, 339-344, 347-349, 353-355, 359-361, 365-367, 371-373, 377-379, 383-385, 389-391, 403-425, 428, 431, 434, 437, 441-442, 446-447, 451, 475-484, 496-499, 502-505, 508-509, 512-527, 530-536, 539-544, 548-561, 565-567, 571-599, 603, 626-630, 633-637, 640-644, 648-655, 658, 662-665, 669-670, 674, 682-701, 709-714, 779-833, 870-888, 898-899, 904-909
cherrypy/lib/static.py 209 184 12% 22, 45-105, 126-158, 163-242, 248, 252-269, 292-351, 368-390
cherrypy/lib/xmlrpcutil.py 28 19 32% 15-18, 23-28, 37-41, 46-49, 60-61
cherrypy/process/plugins.py 374 194 48% 107-111, 119-120, 135, 145-146, 150-166, 181, 184-188, 199-201, 205-211, 217-218, 230-234, 237, 240-247, 252, 255-262, 267, 270-277, 290-328, 355-359, 362-377, 389-423, 438, 449-452, 466-467, 470-482, 517-524, 560, 566, 573-574, 580-581, 630-649, 653-681, 728-731
cherrypy/process/servers.py 160 76 52% 150-154, 161-162, 167-168, 172, 195, 199, 207-209, 226-240, 246, 251, 256, 271, 290-291, 299-301, 307-311, 315, 323-332, 338-352, 357-361, 369-371, 377-391, 395-399, 412-416
cherrypy/process/win32.py 101 99 2% 5-182
cherrypy/process/wspbus.py 264 126 52% 67-72, 108, 112, 116-117, 135, 153-154, 158-159, 218, 231-245, 248, 254-259, 271-283, 298-303, 310, 318-319, 323-324, 337-345, 369, 374, 402-422, 438, 452-525, 542-550, 563-568, 580-595, 600
cherrypy/scaffold/__init__.py 17 17 0% 15-59
cherrypy/test/__init__.py 12 7 42% 10, 16-17, 21-24
cherrypy/test/_test_decorators.py 18 6 67% 11, 15, 19, 23, 27, 39
cherrypy/test/_test_states_demo.py 38 10 74% 14, 18, 22, 42-43, 46-47, 50-51, 59
cherrypy/test/benchmark.py 191 191 0% 24-420
cherrypy/test/checkerdemo.py 8 8 0% 8-49
cherrypy/test/helper.py 285 105 63% 35-38, 42, 72, 87, 92, 98-99, 111, 123, 135-142, 148-151, 155-159, 163-164, 168-169, 173-174, 178-179, 204, 214, 217-218, 229-230, 239, 257, 289-295, 299, 302-308, 312, 324, 329, 338-364, 370-378, 390-392, 403, 435-436, 491, 498, 504, 510, 515-517, 522, 526-542
cherrypy/test/logtest.py 132 108 18% 16-17, 24-31, 53-92, 95, 99, 103-107, 119-136, 145-150, 159-163, 172-190, 199-228
cherrypy/test/modfastcgi.py 54 54 0% 36-135
cherrypy/test/modfcgid.py 49 49 0% 36-124
cherrypy/test/modpy.py 57 57 0% 37-164
cherrypy/test/modwsgi.py 55 55 0% 35-154
cherrypy/test/sessiondemo.py 35 35 0% 4-161
cherrypy/test/test_auth_basic.py 50 40 20% 17-61, 64-67, 70-81, 84-95
cherrypy/test/test_auth_digest.py 76 69 9% 16-41, 44-47, 50-139
cherrypy/test/test_bus.py 165 142 14% 14-16, 19-34, 37-54, 57-71, 77-81, 84, 87-89, 92-113, 116-132, 135-150, 153-172, 176-193, 196-220, 226-246, 249-270, 274
cherrypy/test/test_caching.py 237 214 10% 32-145, 148-195, 198-218, 222-284, 291-308, 315-320, 323-341, 345-370, 373-392
cherrypy/test/test_compat.py 11 2 82% 23, 31
cherrypy/test/test_config.py 146 121 17% 19, 24-137, 149-187, 190-217, 220-222, 225-229, 235-236, 240-244, 251-269, 277-284, 287-303
cherrypy/test/test_config_server.py 56 45 20% 20-37, 56-57, 60-67, 70-84, 87-126
cherrypy/test/test_conn.py 551 504 9% 27-100, 110-136, 139-145, 148-154, 157-244, 247-271, 282-317, 322-415, 418-458, 461-518, 525-594, 597-623, 626-673, 678-690, 695-707, 712-723, 726-747, 752-761, 789-850, 857-873
cherrypy/test/test_core.py 483 447 7% 30-290, 293-314, 317-320, 326-358, 361-454, 459-462, 470-474, 478-518, 521-525, 528-581, 585-591, 598-604, 607-621, 624-629, 632-639, 643-722, 726-759, 766-789, 792-794, 798-801, 813-823
cherrypy/test/test_dynamicobjectmapping.py 223 213 4% 10-265, 272-337, 341-396, 399-424
cherrypy/test/test_encoding.py 165 140 15% 27-120, 123-140, 147-194, 202-232, 240-259, 267, 272-289, 294-312, 318-320, 324-361, 364-415, 420-421
cherrypy/test/test_etags.py 59 51 14% 10-33, 36-61, 64-76, 79-84
cherrypy/test/test_http.py 175 152 13% 24-38, 44-47, 51-93, 103-132, 135-157, 165-184, 187-203, 206-217, 220-231, 234-253, 257-271
cherrypy/test/test_httpauth.py 104 93 11% 14-75, 78-81, 84-93, 96-105, 108-195
cherrypy/test/test_httputil.py 16 6 62% 31-32, 59, 77-80
cherrypy/test/test_iterator.py 114 84 26% 14, 18, 24-29, 39, 42-44, 47, 50-56, 61, 67, 74, 86-103, 106-108, 112-193
cherrypy/test/test_json.py 66 56 15% 15-51, 54-68, 71-91, 94-102
cherrypy/test/test_logging.py 104 79 24% 22-65, 74-90, 95-107, 119-124, 136-148, 157-159, 163-189, 199-209
cherrypy/test/test_mime.py 34 23 32% 10-26, 36-65, 68-92, 100-133
cherrypy/test/test_misc_tools.py 111 90 19% 13-94, 101-103, 106-108, 115-130, 138-168, 172-194, 205-206
cherrypy/test/test_objectmapping.py 252 236 6% 14-174, 178-285, 288-298, 301-322, 325-336, 340-356, 359-386, 389-416, 419-430
cherrypy/test/test_params.py 41 32 22% 11-20, 23-29, 32-43, 46-61
cherrypy/test/test_proxy.py 72 65 10% 13-69, 72-144, 152-154
cherrypy/test/test_refleaks.py 40 29 28% 22-29, 32-66
cherrypy/test/test_request_obj.py 451 420 7% 30-321, 324-325, 328-337, 343-344, 348-349, 352-391, 401-552, 555-631, 634-639, 643-701, 706-717, 721-746, 751-759, 762-886, 889-909, 912-925, 928-932
cherrypy/test/test_routes.py 47 38 19% 19-59, 63-80
cherrypy/test/test_session.py 326 289 11% 26-29, 37-139, 147-150, 154-229, 232-233, 237-238, 241-288, 292-294, 298-303, 306-315, 318-336, 339-379, 382-398, 404-420, 426-512
cherrypy/test/test_sessionauthenticate.py 27 22 19% 10-37, 41-61
cherrypy/test/test_states.py 254 173 32% 44, 47, 50, 61, 65, 69-70, 90-129, 132-165, 170-223, 257, 267-281, 287-315, 322-335, 339-369, 372-376, 380-402, 405-428, 452-471
cherrypy/test/test_static.py 244 200 18% 24-30, 38-42, 60-154, 158-163, 166-190, 196-199, 203-210, 214-222, 230-242, 246-247, 251-263, 266-270, 273-276, 279-283, 287-362, 365-390, 394-396, 399-400, 405-412, 420-429, 433-434
cherrypy/test/test_tools.py 264 233 12% 34-260, 263-305, 308-338, 346-350, 353-383, 387-392, 395-396, 399-403, 407-420, 423-437, 448-451, 459-468
cherrypy/test/test_tutorials.py 116 94 19% 19-21, 28-33, 37-47, 50-52, 55-57, 60-77, 80-92, 95-115, 118-120, 124-133, 139-141, 147-175, 178-210
cherrypy/test/test_virtualhost.py 61 53 13% 13-55, 69-94, 98-113
cherrypy/test/test_wsgi_ns.py 60 55 8% 10-85, 88-93
cherrypy/test/test_wsgi_unix_socket.py 50 22 56% 38, 44-47, 62-76, 79, 82-84, 87-88, 91-93
cherrypy/test/test_wsgi_vhost.py 21 16 24% 10-26, 29-35
cherrypy/test/test_wsgiapps.py 83 72 13% 13-90, 96-97, 100-104, 107-113, 116-120
cherrypy/test/test_xmlrpc.py 100 85 15% 22-51, 56-114, 125-183
cherrypy/test/webtest.py 3 3 0% 2-11
cherrypy/tutorial/__init__.py 1 1 0% 3
cherrypy/tutorial/tut01_helloworld.py 8 8 0% 7-34
cherrypy/tutorial/tut02_expose_methods.py 10 10 0% 8-32
cherrypy/tutorial/tut03_get_and_post.py 15 15 0% 7-51
cherrypy/tutorial/tut04_complex_site.py 22 22 0% 8-103
cherrypy/tutorial/tut05_derived_objects.py 21 21 0% 10-80
cherrypy/tutorial/tut06_default_method.py 17 17 0% 19-61
cherrypy/tutorial/tut07_sessions.py 11 11 0% 11-41
cherrypy/tutorial/tut08_generators_and_yield.py 17 17 0% 10-44
cherrypy/tutorial/tut09_files.py 24 24 0% 43-105
cherrypy/tutorial/tut10_http_errors.py 25 25 0% 11-84
-------------------------------------------------------------------------------
TOTAL 13931 10295 26%
2 files skipped due to complete coverage.
Coverage XML written to file coverage.xml
====================================== 295 tests deselected ======================================
Results (12.72s):
1 xpassed
295 deselected
python runtests: commands[1] | codecov -f coverage.xml -X gcov
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _ |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \____|\___|\___\___/ \_/
v2.0.15
==> Detecting CI provider
-> Got branch from git/hg
-> Got sha from git/hg
==> Preparing upload
Error: Missing repository upload token
Tip: See all example repositories: https://github.com/codecov?query=example
Support channels:
Email: [email protected]
IRC: #codecov
Gitter: https://gitter.im/codecov/support
Twitter: @codecov
____________________________________________ summary _____________________________________________
python: commands succeeded
congratulations :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment