[Pytest-commit] [pytest-dev/pytest] 5ad131: log_cli must now be enabled explicitly

Bruno Oliveira nicoddemus at gmail.com
Fri Jan 26 05:52:45 EST 2018


  Branch: refs/heads/features
  Home:   https://github.com/pytest-dev/pytest
  Commit: 5ad1313b8a18fa3862623d2360cbeb39c202b838
      https://github.com/pytest-dev/pytest/commit/5ad1313b8a18fa3862623d2360cbeb39c202b838
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-01-20 (Sat, 20 Jan 2018)

  Changed paths:
    M _pytest/logging.py
    M testing/logging/test_reporting.py

  Log Message:
  -----------
  log_cli must now be enabled explicitly

Ref: #3013


  Commit: 8dcd2718aa90620d9fdc872f49ba8ccbe9c9dd13
      https://github.com/pytest-dev/pytest/commit/8dcd2718aa90620d9fdc872f49ba8ccbe9c9dd13
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-01-20 (Sat, 20 Jan 2018)

  Changed paths:
    M _pytest/logging.py
    M testing/logging/test_reporting.py

  Log Message:
  -----------
  No longer change the level of any logger unless requested explicitly

Ref: #3013


  Commit: aca1b06747a432e4a7bc3b8b3f98a2a59192c785
      https://github.com/pytest-dev/pytest/commit/aca1b06747a432e4a7bc3b8b3f98a2a59192c785
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-01-20 (Sat, 20 Jan 2018)

  Changed paths:
    M _pytest/logging.py
    M testing/logging/test_fixture.py

  Log Message:
  -----------
  Undo log level set by caplog.set_level at the end of the test

Otherwise this leaks the log level information to other tests

Ref: #3013


  Commit: 8d735f3e1d3ff24ea15759c4a8abb0bc5776b811
      https://github.com/pytest-dev/pytest/commit/8d735f3e1d3ff24ea15759c4a8abb0bc5776b811
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-01-20 (Sat, 20 Jan 2018)

  Changed paths:
    M _pytest/logging.py
    M testing/logging/test_reporting.py

  Log Message:
  -----------
  Live log option now writes to the terminal reporter

Ref: #3013


  Commit: 6bb739516fe86fb3d66d04f6ad354ab37e781b66
      https://github.com/pytest-dev/pytest/commit/6bb739516fe86fb3d66d04f6ad354ab37e781b66
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-01-20 (Sat, 20 Jan 2018)

  Changed paths:
    M doc/en/logging.rst

  Log Message:
  -----------
  Update logging docs with the new changes in 3.4

Ref: #3013


  Commit: c53b72fd7b05793b091eb334de1224f15278993b
      https://github.com/pytest-dev/pytest/commit/c53b72fd7b05793b091eb334de1224f15278993b
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-01-20 (Sat, 20 Jan 2018)

  Changed paths:
    A changelog/3013.feature

  Log Message:
  -----------
  Add CHANGELOG for 3013


  Commit: 5d89a939779a0aafdf99dd9f5e60ec306a53cddd
      https://github.com/pytest-dev/pytest/commit/5d89a939779a0aafdf99dd9f5e60ec306a53cddd
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-01-20 (Sat, 20 Jan 2018)

  Changed paths:
    M _pytest/logging.py
    M testing/logging/test_reporting.py

  Log Message:
  -----------
  Small improvements to tests suggested during review


  Commit: 8f6a5928f76f37323ea9cabf1c58472c3f1ac400
      https://github.com/pytest-dev/pytest/commit/8f6a5928f76f37323ea9cabf1c58472c3f1ac400
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-01-20 (Sat, 20 Jan 2018)

  Changed paths:
    M _pytest/logging.py
    M doc/en/logging.rst
    M testing/logging/test_reporting.py

  Log Message:
  -----------
  Add newline before log messages and enable -v output when log_cli is enabled


  Commit: 97a4967b036fdbf71ad30cf6505cf459b40d8a78
      https://github.com/pytest-dev/pytest/commit/97a4967b036fdbf71ad30cf6505cf459b40d8a78
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-01-20 (Sat, 20 Jan 2018)

  Changed paths:
    M _pytest/logging.py

  Log Message:
  -----------
  Improve code formatting


  Commit: 4a436572a85c9f13fba9f242f87b456f54349a32
      https://github.com/pytest-dev/pytest/commit/4a436572a85c9f13fba9f242f87b456f54349a32
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-01-20 (Sat, 20 Jan 2018)

  Changed paths:
    M testing/logging/test_reporting.py

  Log Message:
  -----------
  Simplify test assertions a bit


  Commit: 9dbcac9af39a032e9ea224d6979a859568b277fd
      https://github.com/pytest-dev/pytest/commit/9dbcac9af39a032e9ea224d6979a859568b277fd
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-01-20 (Sat, 20 Jan 2018)

  Changed paths:
    M _pytest/logging.py
    M testing/logging/test_reporting.py

  Log Message:
  -----------
  Suspend stdout/stderr capturing when emitting live logging messages


  Commit: 18e053546c6798dc801956433087cafde9986121
      https://github.com/pytest-dev/pytest/commit/18e053546c6798dc801956433087cafde9986121
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-01-20 (Sat, 20 Jan 2018)

  Changed paths:
    M testing/logging/test_reporting.py

  Log Message:
  -----------
  Use six.StringIO and __name__ in test_live_logging_suspends_capture


  Commit: 2e40a8b3ca520fbb53cdb0a6239a0d03c8fd27bc
      https://github.com/pytest-dev/pytest/commit/2e40a8b3ca520fbb53cdb0a6239a0d03c8fd27bc
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-01-20 (Sat, 20 Jan 2018)

  Changed paths:
    M testing/logging/test_fixture.py

  Log Message:
  -----------
  Fix test_caplog_captures_for_all_stages by setting log level


  Commit: 27ae270159dc027ba6622ca43be3681204e84e2b
      https://github.com/pytest-dev/pytest/commit/27ae270159dc027ba6622ca43be3681204e84e2b
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-01-20 (Sat, 20 Jan 2018)

  Changed paths:
    M doc/en/logging.rst

  Log Message:
  -----------
  Mention in docs that log messages of level WARNING or above are captured


  Commit: 29a7b5e064d57f510dba92861e7977eb4a7cbb22
      https://github.com/pytest-dev/pytest/commit/29a7b5e064d57f510dba92861e7977eb4a7cbb22
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-01-20 (Sat, 20 Jan 2018)

  Changed paths:
    M _pytest/logging.py

  Log Message:
  -----------
  Initialize log_cli_handler to None during LoggingPlugin init

Some of testdir's functionality bypasses pytest_runtestloop so this
attribute needs to be set early


  Commit: 0df42b44265b7b03dd897f1f3ddc33018acf0957
      https://github.com/pytest-dev/pytest/commit/0df42b44265b7b03dd897f1f3ddc33018acf0957
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-01-22 (Mon, 22 Jan 2018)

  Changed paths:
    M _pytest/logging.py
    M testing/logging/test_reporting.py

  Log Message:
  -----------
  Show a header for each testing phase during live logging

As suggested during review


  Commit: 3a9d0b26d5700be58bde067e6d8d4ca2e80406de
      https://github.com/pytest-dev/pytest/commit/3a9d0b26d5700be58bde067e6d8d4ca2e80406de
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-01-22 (Mon, 22 Jan 2018)

  Changed paths:
    M _pytest/logging.py
    M testing/logging/test_reporting.py

  Log Message:
  -----------
  Use pytest_runtest_logstart to signal the start of a new test

This also simplifies the code a bit because we don't need to keep
a set of ids anymore


  Commit: 9f4688e549cb2688f667ff951f9f28a869f6bf07
      https://github.com/pytest-dev/pytest/commit/9f4688e549cb2688f667ff951f9f28a869f6bf07
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-01-22 (Mon, 22 Jan 2018)

  Changed paths:
    M testing/logging/test_reporting.py

  Log Message:
  -----------
  Remove unnecessary -s from test_log_cli_enabled_disabled


  Commit: 113bfb6be88523df3983c358fbed5bb75f234b0c
      https://github.com/pytest-dev/pytest/commit/113bfb6be88523df3983c358fbed5bb75f234b0c
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-01-22 (Mon, 22 Jan 2018)

  Changed paths:
    M _pytest/logging.py
    M testing/logging/test_reporting.py

  Log Message:
  -----------
  Report 'call' phase as 'live log call'

As commented in review, this makes it consistent with the headers shown
by stdout/stderr capturing ("Captured log call")


  Commit: b4e8861aa583e9fc365e5bb4769e3a6e5c94f78a
      https://github.com/pytest-dev/pytest/commit/b4e8861aa583e9fc365e5bb4769e3a6e5c94f78a
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-01-23 (Tue, 23 Jan 2018)

  Changed paths:
    M _pytest/logging.py
    M doc/en/logging.rst

  Log Message:
  -----------
  Fix typos


  Commit: 2f955e0c99d10fc90f103c14aff70b1382295f5f
      https://github.com/pytest-dev/pytest/commit/2f955e0c99d10fc90f103c14aff70b1382295f5f
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-01-24 (Wed, 24 Jan 2018)

  Changed paths:
    M doc/en/logging.rst

  Log Message:
  -----------
  Update documentation: rewording and move things for better reading flow


  Commit: 15cbd6115987ced2e9ae9cd598cc80f0bf07b71c
      https://github.com/pytest-dev/pytest/commit/15cbd6115987ced2e9ae9cd598cc80f0bf07b71c
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-01-24 (Wed, 24 Jan 2018)

  Changed paths:
    M _pytest/logging.py
    M changelog/3117.feature
    M doc/en/logging.rst
    M testing/logging/test_fixture.py

  Log Message:
  -----------
  Change caplog.get_handler(when) to caplog.get_records(when)

While updating the docs I noticed that caplog.get_handler() exposes
the underlying Handler object, which I think it is a bit too much
detail at this stage. Update to return the records directly instead.


  Commit: a58099022a293f1c73fe116f72a0bdcc080f64d9
      https://github.com/pytest-dev/pytest/commit/a58099022a293f1c73fe116f72a0bdcc080f64d9
  Author: Bruno Oliveira <nicoddemus at gmail.com>
  Date:   2018-01-26 (Fri, 26 Jan 2018)

  Changed paths:
    M _pytest/logging.py
    A changelog/3013.feature
    M changelog/3117.feature
    M doc/en/logging.rst
    M testing/logging/test_fixture.py
    M testing/logging/test_reporting.py

  Log Message:
  -----------
  Merge pull request #3124 from nicoddemus/logging-3013

Changes in the logging plugin for 3.4


Compare: https://github.com/pytest-dev/pytest/compare/b8be33963203...a58099022a29


More information about the pytest-commit mailing list