Markus

Latest version: v5.1.0

Safety actively analyzes 681844 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

3.0.0

--------------------------

**Features**

* Added support for Python 3.9 (79). Thank you, Brady!

* Changed ``assert_*`` helper methods on ``markus.testing.MetricsMock``
to print the records to stdout if the assertion fails. This can save some
time debugging failing tests. (74)

**Backwards incompatible changes**

* Dropped support for Python 3.5 (78). Thank you, Brady!

* ``markus.testing.MetricsMock.get_records`` and
``markus.testing.MetricsMock.filter_records`` return
``markus.main.MetricsRecord`` instances now. This might require
you to rewrite/update tests that use the ``MetricsMock``.

2.2.0

------------------------

**Features**

* Add ``assert_`` methods to ``MetricsMock`` to reduce the boilerplate for
testing. Thank you, John! (68)

**Bug fixes**

* Remove use of ``six`` library. (69)

2.1.0

-------------------------

**Features**

* Fix ``get_metrics()`` so you can call it without passing in a `thing`
and it'll now create a ``MetricsInterface`` that doesn't have a key
prefix. (59)

2.0.0

----------------------------

**Features**

* Use ``time.perf_counter()`` if available. Thank you, Mike! (34)
* Support Python 3.7 officially.
* Add filters for adjusting and dropping metrics getting emitted.
See documentation for more details. (40)

**Backwards incompatible changes**

* ``tags`` now defaults to ``[]`` instead of ``None`` which may affect some
expected test output.
* Adjust internals to run ``.emit()`` on backends. If you wrote your own
backend, you may need to adjust it.
* Drop support for Python 3.4. (39)
* Drop support for Python 2.7.

If you're still using Python 2.7, you'll need to pin to ``<2.0.0``. (42)

**Bug fixes**

* Document feature support in backends. (47)
* Fix ``MetricsMock.has_record()`` example. Thank you, John!

1.2.0

------------------------

**Features**

* Add ``.clear()`` to ``MetricsMock`` making it easier to build a pytest
fixture with the ``MetricsMock`` context and manipulate records for easy
testing. (29)

**Bug fixes**

* Update Cloudwatch backend fixing ``.timing()`` and ``.histogram()`` to
send ``histogram`` metrics type which Datadog now supports. (31)

1.1.2

-----------------------

**Typo fixes**

* Fix the date from the previous release. Ugh.

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.