Skip to content

Commit

Permalink
chore: Hide Case.endpoint from representation
Browse files Browse the repository at this point in the history
  • Loading branch information
Stranger6667 committed Sep 17, 2020
1 parent 33396d4 commit 7b367b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/changelog.rst
Expand Up @@ -6,6 +6,11 @@ Changelog
`Unreleased`_
-------------

Changed
~~~~~~~

- Hide ``Case.endpoint`` from representation. Its representation decreases the usability of pytest's output. `#719`_

`2.4.0`_ - 2020-09-15
---------------------

Expand Down Expand Up @@ -1333,6 +1338,7 @@ Fixed
.. _0.3.0: https://github.com/schemathesis/schemathesis/compare/v0.2.0...v0.3.0
.. _0.2.0: https://github.com/schemathesis/schemathesis/compare/v0.1.0...v0.2.0

.. _#719: https://github.com/schemathesis/schemathesis/issues/719
.. _#708: https://github.com/schemathesis/schemathesis/issues/708
.. _#705: https://github.com/schemathesis/schemathesis/issues/705
.. _#692: https://github.com/schemathesis/schemathesis/issues/692
Expand Down
2 changes: 1 addition & 1 deletion src/schemathesis/models.py
Expand Up @@ -31,7 +31,7 @@
class Case:
"""A single test case parameters."""

endpoint: "Endpoint" = attr.ib() # pragma: no mutate
endpoint: "Endpoint" = attr.ib(repr=False) # pragma: no mutate
path_parameters: Optional[PathParameters] = attr.ib(default=None) # pragma: no mutate
headers: Optional[Headers] = attr.ib(default=None) # pragma: no mutate
cookies: Optional[Cookies] = attr.ib(default=None) # pragma: no mutate
Expand Down

0 comments on commit 7b367b7

Please sign in to comment.