New file |
| | |
| | | py$(PYV): remove tox env folder $(@D)/.tox/py$(PYV) |
| | | py$(PYV): commands[0]> python -m coverage erase |
| | | py$(PYV): commands[1]> python -m pytest tests --run-optional jupyter -m jupyter --numprocesses auto --cov --cov-append |
| | | ============================= test session starts ============================== |
| | | platform sunos5 -- Python $(PYTHON_VERSION).X -- $(@D)/.tox/py$(PYV)/bin/python |
| | | cachedir: .tox/py$(PYV)/.pytest_cache |
| | | rootdir: $(@D) |
| | | configfile: pyproject.toml |
| | | X workers [59 items] |
| | | |
| | | scheduling tests via LoadScheduling |
| | | |
| | | tests/test_ipynb.py::test_automagic PASSED |
| | | tests/test_ipynb.py::test_cache_isnt_written_if_no_jupyter_deps_dir PASSED |
| | | tests/test_ipynb.py::test_cache_isnt_written_if_no_jupyter_deps_single PASSED |
| | | tests/test_ipynb.py::test_cell_magic[custom cell magics mode] PASSED |
| | | tests/test_ipynb.py::test_cell_magic[default mode] PASSED |
| | | tests/test_ipynb.py::test_cell_magic_nested PASSED |
| | | tests/test_ipynb.py::test_cell_magic_noop PASSED |
| | | tests/test_ipynb.py::test_cell_magic_with_custom_python_magic[Correctly change when cell magic registered] PASSED |
| | | tests/test_ipynb.py::test_cell_magic_with_custom_python_magic[No change when cell magic not registered] PASSED |
| | | tests/test_ipynb.py::test_cell_magic_with_custom_python_magic[No change when other cell magics registered] PASSED |
| | | tests/test_ipynb.py::test_cell_magic_with_invalid_body PASSED |
| | | tests/test_ipynb.py::test_cell_magic_with_magic PASSED |
| | | tests/test_ipynb.py::test_cell_magic_with_magic_noop PASSED |
| | | tests/test_ipynb.py::test_empty_cell PASSED |
| | | tests/test_ipynb.py::test_empty_string PASSED |
| | | tests/test_ipynb.py::test_entire_notebook_empty_metadata PASSED |
| | | tests/test_ipynb.py::test_entire_notebook_no_trailing_newline PASSED |
| | | tests/test_ipynb.py::test_entire_notebook_trailing_newline PASSED |
| | | tests/test_ipynb.py::test_entire_notebook_without_changes PASSED |
| | | tests/test_ipynb.py::test_input_already_contains_transformed_magic PASSED |
| | | tests/test_ipynb.py::test_ipynb_and_pyi_flags PASSED |
| | | tests/test_ipynb.py::test_ipynb_diff_with_change PASSED |
| | | tests/test_ipynb.py::test_ipynb_diff_with_no_change PASSED |
| | | tests/test_ipynb.py::test_ipynb_flag PASSED |
| | | tests/test_ipynb.py::test_magic[Assignment to environment variable-custom cell magics mode] PASSED |
| | | tests/test_ipynb.py::test_magic[Assignment to environment variable-default mode] PASSED |
| | | tests/test_ipynb.py::test_magic[Assignment to magic-custom cell magics mode] PASSED |
| | | tests/test_ipynb.py::test_magic[Assignment to magic-default mode] PASSED |
| | | tests/test_ipynb.py::test_magic[Help-custom cell magics mode] PASSED |
| | | tests/test_ipynb.py::test_magic[Help-default mode] PASSED |
| | | tests/test_ipynb.py::test_magic[Line magic with argument-custom cell magics mode] PASSED |
| | | tests/test_ipynb.py::test_magic[Line magic with argument-default mode] PASSED |
| | | tests/test_ipynb.py::test_magic[Line magic without argument-custom cell magics mode] PASSED |
| | | tests/test_ipynb.py::test_magic[Line magic without argument-default mode] PASSED |
| | | tests/test_ipynb.py::test_magic[Other help-custom cell magics mode] PASSED |
| | | tests/test_ipynb.py::test_magic[Other help-default mode] PASSED |
| | | tests/test_ipynb.py::test_magic[Other system call-custom cell magics mode] PASSED |
| | | tests/test_ipynb.py::test_magic[Other system call-default mode] PASSED |
| | | tests/test_ipynb.py::test_magic[System assignment-custom cell magics mode] PASSED |
| | | tests/test_ipynb.py::test_magic[System assignment-default mode] PASSED |
| | | tests/test_ipynb.py::test_magic[System call-custom cell magics mode] PASSED |
| | | tests/test_ipynb.py::test_magic[System call-default mode] PASSED |
| | | tests/test_ipynb.py::test_magic_noop PASSED |
| | | tests/test_ipynb.py::test_multiline_magic PASSED |
| | | tests/test_ipynb.py::test_multiline_no_magic PASSED |
| | | tests/test_ipynb.py::test_non_python_magics[%%bash\n2+2] PASSED |
| | | tests/test_ipynb.py::test_non_python_magics[%%html --isolated\n2+2] PASSED |
| | | tests/test_ipynb.py::test_non_python_magics[%%writefile e.txt\n meh\n meh] PASSED |
| | | tests/test_ipynb.py::test_non_python_notebook PASSED |
| | | tests/test_ipynb.py::test_noop PASSED |
| | | tests/test_ipynb.py::test_set_input PASSED |
| | | tests/test_ipynb.py::test_trailing_semicolon[False] PASSED |
| | | tests/test_ipynb.py::test_trailing_semicolon[True] PASSED |
| | | tests/test_ipynb.py::test_trailing_semicolon_indented PASSED |
| | | tests/test_ipynb.py::test_trailing_semicolon_noop PASSED |
| | | tests/test_ipynb.py::test_trailing_semicolon_with_comment PASSED |
| | | tests/test_ipynb.py::test_trailing_semicolon_with_comment_on_next_line PASSED |
| | | tests/test_ipynb.py::test_unable_to_replace_magics PASSED |
| | | tests/test_ipynb.py::test_unparseable_notebook PASSED |
| | | |
| | | |
| | | ======== 59 passed ======== |
| | | py$(PYV): commands[2]> python -m coverage report |
| | | Name Stmts Miss Branch BrPart Cover |
| | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/_black_version.py 1 0 0 0 100% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/black/__init__.py 587 214 321 64 57% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/black/_width_table.py 2 0 0 0 100% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/black/brackets.py 165 70 86 20 52% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/black/cache.py 83 20 24 2 70% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/black/comments.py 201 109 117 9 39% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/black/concurrency.py 97 75 44 0 16% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/black/const.py 4 0 0 0 100% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/black/debug.py 39 21 12 0 39% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/black/files.py 195 94 96 19 48% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/black/handle_ipynb_magics.py 176 5 66 4 96% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/black/linegen.py 722 512 418 29 24% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/black/lines.py 509 286 325 26 35% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/black/mode.py 95 2 12 3 93% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/black/nodes.py 449 256 292 38 35% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/black/numerics.py 35 20 14 5 41% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/black/output.py 68 20 32 5 61% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/black/parsing.py 110 46 49 8 57% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/black/ranges.py 192 164 102 0 10% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/black/report.py 63 12 24 5 76% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/black/rusty.py 14 4 0 0 71% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/black/strings.py 162 87 70 11 39% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/black/trans.py 892 774 432 1 9% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/blackd/__init__.py 136 98 36 1 23% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/blackd/middlewares.py 30 21 10 1 25% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/blib2to3/__init__.py 0 0 0 0 100% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/blib2to3/pgen2/__init__.py 1 0 0 0 100% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/blib2to3/pgen2/driver.py 207 68 76 16 63% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/blib2to3/pgen2/grammar.py 70 14 10 1 81% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/blib2to3/pgen2/parse.py 185 78 62 10 55% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/blib2to3/pgen2/pgen.py 314 29 132 7 89% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/blib2to3/pgen2/token.py 73 3 4 0 96% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/blib2to3/pgen2/tokenize.py 365 194 162 25 45% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/blib2to3/pygram.py 150 0 2 0 100% |
| | | $(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/blib2to3/pytree.py 471 261 212 8 37% |
| | | tests/__init__.py 0 0 0 0 100% |
| | | tests/conftest.py 10 0 0 0 100% |
| | | tests/optional.py 70 10 26 6 83% |
| | | tests/test_black.py 1602 1361 128 7 14% |
| | | tests/test_blackd.py 160 105 12 1 34% |
| | | tests/test_format.py 39 22 4 0 40% |
| | | tests/test_ipynb.py 201 0 10 0 100% |
| | | tests/test_no_ipynb.py 22 13 0 0 41% |
| | | tests/test_ranges.py 27 14 0 0 48% |
| | | tests/test_trans.py 33 30 2 0 9% |
| | | tests/util.py 171 101 40 0 36% |
| | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| | | TOTAL 9198 5213 3464 332 39% |
| | | py$(PYV): OK |
| | | congratulations :) |