Skip to content

Instantly share code, notes, and snippets.

@adithyabsk
Last active August 1, 2019 18:20
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 adithyabsk/50778b4c840ce672b5473685128e8de2 to your computer and use it in GitHub Desktop.
Save adithyabsk/50778b4c840ce672b5473685128e8de2 to your computer and use it in GitHub Desktop.
Run Tox
tox
# .package recreate: /Users/adithyabalaji/Coding/simplecalc/.tox/.package
# .package installdeps: poetry>=0.12
# py36 recreate: /Users/adithyabalaji/Coding/simplecalc/.tox/py36
# py36 inst: /Users/adithyabalaji/Coding/simplecalc/.tox/.tmp/package/1/simplecalc-0.1.0.tar.gz
# py36 installed: Click==7.0,simplecalc==0.1.0,toml==0.10.0
# py36 run-test-pre: PYTHONHASHSEED='2809516512'
# py36 run-test: commands[0] | poetry install -vvv
# Using virtualenv: /Users/adithyabalaji/Coding/simplecalc/.tox/py36
# Installing dependencies from lock file
#
#
# Package operations: 64 installs, 0 updates, 0 removals, 5 skipped
#
# - Installing zipp (0.5.2)
# - Installing attrs (19.1.0)
# - Installing certifi (2019.6.16)
# - Installing chardet (3.0.4)
# - Installing entrypoints (0.3)
# - Installing idna (2.8)
# - Installing importlib-metadata (0.19)
# - Installing markupsafe (1.1.1)
# - Installing mccabe (0.6.1)
# - Installing pycodestyle (2.5.0)
# - Installing pyflakes (2.1.1)
# - Installing pyparsing (2.4.2)
# - Installing pytz (2019.1)
# - Installing six (1.12.0)
# - Installing urllib3 (1.25.3)
# - Installing alabaster (0.7.12)
# - Installing atomicwrites (1.3.0)
# - Installing babel (2.7.0)
# - Installing cached-property (1.5.1)
# - Skipping colorama (0.4.1) Not needed for the current environment
# - Installing docutils (0.15)
# - Installing flake8 (3.7.8)
# - Installing imagesize (1.1.0)
# - Installing jinja2 (2.10.1)
# - Installing more-itertools (7.2.0)
# - Installing packaging (19.1)
# - Installing pluggy (0.12.0)
# - Installing py (1.8.0)
# - Installing pygments (2.4.2)
# - Installing pyyaml (5.1.1)
# - Installing requests (2.22.0)
# - Installing snowballstemmer (1.9.0)
# - Installing sphinxcontrib-applehelp (1.0.1)
# - Installing sphinxcontrib-devhelp (1.0.1)
# - Installing sphinxcontrib-htmlhelp (1.0.2)
# - Installing sphinxcontrib-jsmath (1.0.1)
# - Installing sphinxcontrib-qthelp (1.0.2)
# - Installing sphinxcontrib-serializinghtml (1.1.3)
# - Installing appdirs (1.4.3)
# - Installing aspy.refactor-imports (1.1.0)
# - Installing aspy.yaml (1.3.0)
# - Installing cfgv (2.0.1)
# - Skipping click (7.0) Already installed
# - Installing coverage (4.5.4)
# - Installing filelock (3.0.12)
# - Installing flake8-polyfill (1.0.2)
# - Installing identify (1.4.5)
# - Installing importlib-resources (1.0.2)
# - Installing incremental (17.5.0)
# - Skipping mistune (0.8.4) Not required
# - Installing nodeenv (1.3.3)
# - Installing pydocstyle (3.0.0)
# - Installing pytest (3.10.1)
# - Installing sphinx (2.1.2)
# - Skipping toml (0.10.0) Already installed
# - Installing virtualenv (16.7.2)
# - Installing black (19.3b0)
# - Installing darglint (0.5.7)
# - Installing flake8-docstrings (1.3.0)
# - Installing isort (4.3.21)
# - Skipping m2r (0.2.1) Not required
# - Installing pre-commit (1.17.0)
# - Installing pytest-cov (2.7.1)
# - Installing pytest-mock (1.10.4)
# - Installing seed-isort-config (1.9.2)
# - Installing sphinx-rtd-theme (0.4.3)
# - Installing towncrier (19.2.0)
# - Installing tox (3.13.2)
# - Installing xdoctest (0.9.1)
# - Installing simplecalc (0.1.0)
# py36 run-test: commands[1] | poetry run pytest
# ======================================================== test session starts ========================================================
# platform darwin -- Python 3.6.8, pytest-3.10.1, py-1.8.0, pluggy-0.12.0 -- /Users/adithyabalaji/Coding/simplecalc/.tox/py36/bin/python
# cachedir: .pytest_cache
# rootdir: /Users/adithyabalaji/Coding/simplecalc, inifile: setup.cfg
# plugins: xdoctest-0.9.1, cov-2.7.1, mock-1.10.4
# collected 28 items
#
# simplecalc/calculator.py::sum_:0 PASSED [ 3%]
# simplecalc/calculator.py::difference:0 PASSED [ 7%]
# simplecalc/calculator.py::product:0 PASSED [ 10%]
# simplecalc/calculator.py::quotient:0 PASSED [ 14%]
# simplecalc/tests/test_calculator.py::test_custom_exceptions PASSED [ 17%]
# simplecalc/tests/test_calculator.py::test_convet_num PASSED [ 21%]
# simplecalc/tests/test_calculator.py::test_check_input_not_list PASSED [ 25%]
# simplecalc/tests/test_calculator.py::test_check_input_list_length PASSED [ 28%]
# simplecalc/tests/test_calculator.py::test_check_input_all_numbers_conversion PASSED [ 32%]
# simplecalc/tests/test_calculator.py::test_check_input_all_numbers_error PASSED [ 35%]
# simplecalc/tests/test_calculator.py::test_check_input_protect_division_zero PASSED [ 39%]
# simplecalc/tests/test_calculator.py::test_sum PASSED [ 42%]
# simplecalc/tests/test_calculator.py::test_difference PASSED [ 46%]
# simplecalc/tests/test_calculator.py::test_product PASSED [ 50%]
# simplecalc/tests/test_calculator.py::test_quotient PASSED [ 53%]
# simplecalc/tests/test_cli.py::test_exception_handling_valid PASSED [ 57%]
# simplecalc/tests/test_cli.py::test_exception_handling_error PASSED [ 60%]
# simplecalc/tests/test_cli.py::test_exception_handling_captures_calctypeerror[CalculatorTypeError] PASSED [ 64%]
# simplecalc/tests/test_cli.py::test_exception_handling_captures_calctypeerror[CalculatorValueError] PASSED [ 67%]
# simplecalc/tests/test_cli.py::test_calc_main PASSED [ 71%]
# simplecalc/tests/test_cli.py::test_calc_sum_fail PASSED [ 75%]
# simplecalc/tests/test_cli.py::test_calc_sum PASSED [ 78%]
# simplecalc/tests/test_cli.py::test_calc_difference_fail PASSED [ 82%]
# simplecalc/tests/test_cli.py::test_calc_difference PASSED [ 85%]
# simplecalc/tests/test_cli.py::test_calc_product_fail PASSED [ 89%]
# simplecalc/tests/test_cli.py::test_calc_product PASSED [ 92%]
# simplecalc/tests/test_cli.py::test_calc_quotient_fail PASSED [ 96%]
# simplecalc/tests/test_cli.py::test_calc_quotient PASSED [100%]
#
# ---------- coverage: platform darwin, python 3.6.8-final-0 -----------
# Name Stmts Miss Branch BrPart Cover
# ------------------------------------------------------------
# simplecalc/__init__.py 12 0 0 0 100%
# simplecalc/calculator.py 31 0 17 0 100%
# simplecalc/cli.py 20 0 0 0 100%
# ------------------------------------------------------------
# TOTAL 63 0 17 0 100%
# Coverage HTML written to dir htmlcov
#
#
# ===================================================== 28 passed in 0.46 seconds =====================================================
# py37 recreate: /Users/adithyabalaji/Coding/simplecalc/.tox/py37
# py37 inst: /Users/adithyabalaji/Coding/simplecalc/.tox/.tmp/package/1/simplecalc-0.1.0.tar.gz
# py37 installed: Click==7.0,simplecalc==0.1.0,toml==0.10.0
# py37 run-test-pre: PYTHONHASHSEED='2809516512'
# py37 run-test: commands[0] | poetry install -vvv
# Using virtualenv: /Users/adithyabalaji/Coding/simplecalc/.tox/py37
# Installing dependencies from lock file
#
#
# Package operations: 63 installs, 0 updates, 0 removals, 6 skipped
#
# - Installing zipp (0.5.2)
# - Installing attrs (19.1.0)
# - Installing certifi (2019.6.16)
# - Installing chardet (3.0.4)
# - Installing entrypoints (0.3)
# - Installing idna (2.8)
# - Installing importlib-metadata (0.19)
# - Installing markupsafe (1.1.1)
# - Installing mccabe (0.6.1)
# - Installing pycodestyle (2.5.0)
# - Installing pyflakes (2.1.1)
# - Installing pyparsing (2.4.2)
# - Installing pytz (2019.1)
# - Installing six (1.12.0)
# - Installing urllib3 (1.25.3)
# - Installing alabaster (0.7.12)
# - Installing atomicwrites (1.3.0)
# - Installing babel (2.7.0)
# - Installing cached-property (1.5.1)
# - Skipping colorama (0.4.1) Not needed for the current environment
# - Installing docutils (0.15)
# - Installing flake8 (3.7.8)
# - Installing imagesize (1.1.0)
# - Installing jinja2 (2.10.1)
# - Installing more-itertools (7.2.0)
# - Installing packaging (19.1)
# - Installing pluggy (0.12.0)
# - Installing py (1.8.0)
# - Installing pygments (2.4.2)
# - Installing pyyaml (5.1.1)
# - Installing requests (2.22.0)
# - Installing snowballstemmer (1.9.0)
# - Installing sphinxcontrib-applehelp (1.0.1)
# - Installing sphinxcontrib-devhelp (1.0.1)
# - Installing sphinxcontrib-htmlhelp (1.0.2)
# - Installing sphinxcontrib-jsmath (1.0.1)
# - Installing sphinxcontrib-qthelp (1.0.2)
# - Installing sphinxcontrib-serializinghtml (1.1.3)
# - Installing appdirs (1.4.3)
# - Installing aspy.refactor-imports (1.1.0)
# - Installing aspy.yaml (1.3.0)
# - Installing cfgv (2.0.1)
# - Skipping click (7.0) Already installed
# - Installing coverage (4.5.4)
# - Installing filelock (3.0.12)
# - Installing flake8-polyfill (1.0.2)
# - Installing identify (1.4.5)
# - Installing incremental (17.5.0)
# - Skipping mistune (0.8.4) Not required
# - Installing nodeenv (1.3.3)
# - Installing pydocstyle (3.0.0)
# - Installing pytest (3.10.1)
# - Installing sphinx (2.1.2)
# - Skipping toml (0.10.0) Already installed
# - Installing virtualenv (16.7.2)
# - Installing black (19.3b0)
# - Installing darglint (0.5.7)
# - Installing flake8-docstrings (1.3.0)
# - Installing isort (4.3.21)
# - Skipping m2r (0.2.1) Not required
# - Installing pre-commit (1.17.0)
# - Installing pytest-cov (2.7.1)
# - Installing pytest-mock (1.10.4)
# - Installing seed-isort-config (1.9.2)
# - Installing sphinx-rtd-theme (0.4.3)
# - Installing towncrier (19.2.0)
# - Installing tox (3.13.2)
# - Installing xdoctest (0.9.1)
# - Not removing importlib-resources (1.0.2) Not currently installed
# - Installing simplecalc (0.1.0)
# py37 run-test: commands[1] | poetry run pytest
# ======================================================== test session starts ========================================================
# platform darwin -- Python 3.7.3, pytest-3.10.1, py-1.8.0, pluggy-0.12.0 -- /Users/adithyabalaji/Coding/simplecalc/.tox/py37/bin/python
# cachedir: .pytest_cache
# rootdir: /Users/adithyabalaji/Coding/simplecalc, inifile: setup.cfg
# plugins: xdoctest-0.9.1, cov-2.7.1, mock-1.10.4
# collected 28 items
#
# simplecalc/calculator.py::sum_:0 PASSED [ 3%]
# simplecalc/calculator.py::difference:0 PASSED [ 7%]
# simplecalc/calculator.py::product:0 PASSED [ 10%]
# simplecalc/calculator.py::quotient:0 PASSED [ 14%]
# simplecalc/tests/test_calculator.py::test_custom_exceptions PASSED [ 17%]
# simplecalc/tests/test_calculator.py::test_convet_num PASSED [ 21%]
# simplecalc/tests/test_calculator.py::test_check_input_not_list PASSED [ 25%]
# simplecalc/tests/test_calculator.py::test_check_input_list_length PASSED [ 28%]
# simplecalc/tests/test_calculator.py::test_check_input_all_numbers_conversion PASSED [ 32%]
# simplecalc/tests/test_calculator.py::test_check_input_all_numbers_error PASSED [ 35%]
# simplecalc/tests/test_calculator.py::test_check_input_protect_division_zero PASSED [ 39%]
# simplecalc/tests/test_calculator.py::test_sum PASSED [ 42%]
# simplecalc/tests/test_calculator.py::test_difference PASSED [ 46%]
# simplecalc/tests/test_calculator.py::test_product PASSED [ 50%]
# simplecalc/tests/test_calculator.py::test_quotient PASSED [ 53%]
# simplecalc/tests/test_cli.py::test_exception_handling_valid PASSED [ 57%]
# simplecalc/tests/test_cli.py::test_exception_handling_error PASSED [ 60%]
# simplecalc/tests/test_cli.py::test_exception_handling_captures_calctypeerror[CalculatorTypeError] PASSED [ 64%]
# simplecalc/tests/test_cli.py::test_exception_handling_captures_calctypeerror[CalculatorValueError] PASSED [ 67%]
# simplecalc/tests/test_cli.py::test_calc_main PASSED [ 71%]
# simplecalc/tests/test_cli.py::test_calc_sum_fail PASSED [ 75%]
# simplecalc/tests/test_cli.py::test_calc_sum PASSED [ 78%]
# simplecalc/tests/test_cli.py::test_calc_difference_fail PASSED [ 82%]
# simplecalc/tests/test_cli.py::test_calc_difference PASSED [ 85%]
# simplecalc/tests/test_cli.py::test_calc_product_fail PASSED [ 89%]
# simplecalc/tests/test_cli.py::test_calc_product PASSED [ 92%]
# simplecalc/tests/test_cli.py::test_calc_quotient_fail PASSED [ 96%]
# simplecalc/tests/test_cli.py::test_calc_quotient PASSED [100%]
#
# ---------- coverage: platform darwin, python 3.7.3-final-0 -----------
# Name Stmts Miss Branch BrPart Cover
# ------------------------------------------------------------
# simplecalc/__init__.py 12 0 0 0 100%
# simplecalc/calculator.py 31 0 17 0 100%
# simplecalc/cli.py 20 0 0 0 100%
# ------------------------------------------------------------
# TOTAL 63 0 17 0 100%
# Coverage HTML written to dir htmlcov
#
#
# ===================================================== 28 passed in 0.44 seconds =====================================================
# ______________________________________________________________ summary ______________________________________________________________
# py36: commands succeeded
# py37: commands succeeded
# congratulations :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment