File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class States(Enum):
1717
1818 def __repr__ (self ) -> str :
1919 """
20- The representation should not include the generated number.
20+ Return a representation which does not include the generated number.
2121 """
2222 return '<{class_name}.{state_name}>' .format (
2323 class_name = self .__class__ .__name__ ,
Original file line number Diff line number Diff line change 1717from requests import codes
1818from requests_mock .exceptions import NoMockAddress
1919
20- from mock_vws import MockVWS
20+ from mock_vws import MockVWS , States
2121from mock_vws ._constants import TargetStatuses
2222from tests .mock_vws .utils import (
2323 VuforiaDatabaseKeys ,
@@ -541,3 +541,15 @@ def test_custom(
541541
542542 expected = query_recognizes_deletion
543543 assert abs (expected - recognize_deletion_seconds ) < 0.2
544+
545+
546+ class TestStates :
547+ """
548+ Tests for different mock states.
549+ """
550+
551+ def test_repr (self ) -> None :
552+ """
553+ Test for the representation of a ``State``.
554+ """
555+ assert repr (States .WORKING ) == '<States.WORKING>'
You can’t perform that action at this time.
0 commit comments