mpdlcd icon indicating copy to clipboard operation
mpdlcd copied to clipboard

All tests/test_display_pattern.py are failed

Open ConiKost opened this issue 5 years ago • 0 comments

Cause are your two newest commits for 0.5.3dev release, since all tests pass in 0.5.2.

tests/test_display_fields.py::FieldRegistryTestCase::test_create_kwargs PASSED                                                                         [  2%]
tests/test_display_fields.py::FieldRegistryTestCase::test_increment_ref PASSED                                                                         [  5%]
tests/test_display_fields.py::FieldRegistryTestCase::test_invalid_name PASSED                                                                          [  7%]
tests/test_display_fields.py::FieldRegistryTestCase::test_register PASSED                                                                              [ 10%]
tests/test_display_fields.py::FieldRegistryTestCase::test_register_conflict PASSED                                                                     [ 13%]
tests/test_display_fields.py::FieldRegistryTestCase::test_register_field_decorator PASSED                                                              [ 15%]
tests/test_display_fields.py::FieldRegistryTestCase::test_register_field_decorator_noname PASSED                                                       [ 18%]
tests/test_display_fields.py::FieldRegistryTestCase::test_register_noname PASSED                                                                       [ 21%]
tests/test_display_fields.py::FieldRegistryTestCase::test_register_twice_no_conflict PASSED                                                            [ 23%]
tests/test_display_pattern.py::DisplayPatternTests::test_multiple_options FAILED                                                                       [ 26%]
tests/test_display_pattern.py::DisplayPatternTests::test_multiple_quotes FAILED                                                                        [ 28%]
tests/test_display_pattern.py::DisplayPatternTests::test_quoting FAILED                                                                                [ 31%]
tests/test_display_pattern.py::DisplayPatternTests::test_simple_pattern FAILED                                                                         [ 34%]
tests/test_mpdhooks.py::HookRegistryTest::test_create_kwargs PASSED                                                                                    [ 36%]
tests/test_mpdhooks.py::HookRegistryTest::test_invalid_name PASSED                                                                                     [ 39%]
tests/test_mpdhooks.py::HookRegistryTest::test_register PASSED                                                                                         [ 42%]
tests/test_mpdhooks.py::HookRegistryTest::test_register_conflict PASSED                                                                                [ 44%]
tests/test_mpdhooks.py::HookRegistryTest::test_register_hook_decorator PASSED                                                                          [ 47%]
tests/test_mpdhooks.py::HookRegistryTest::test_register_hook_decorator_noname PASSED                                                                   [ 50%]
tests/test_mpdhooks.py::HookRegistryTest::test_register_noname PASSED                                                                                  [ 52%]
tests/test_mpdhooks.py::HookRegistryTest::test_register_twice_no_conflict PASSED                                                                       [ 55%]
tests/test_mpdhooks.py::MPDHookTest::test_default_subhook PASSED                                                                                       [ 57%]
tests/test_mpdhooks.py::MPDHookTest::test_first_change PASSED                                                                                          [ 60%]
tests/test_mpdhooks.py::MPDHookTest::test_repeated_change PASSED                                                                                       [ 63%]
tests/test_mpdhooks.py::MPDHookTest::test_subhook_first_change PASSED                                                                                  [ 65%]
tests/test_mpdhooks.py::MPDHookTest::test_subhook_repeated_change PASSED                                                                               [ 68%]
tests/test_mpdhooks.py::MPDHookTest::test_subhook_unchanged PASSED                                                                                     [ 71%]
tests/test_mpdhooks.py::MPDHookTest::test_unchanged PASSED                                                                                             [ 73%]
tests/test_mpdhooks.py::SpecificHooksTest::test_elapsed_and_total_hook PASSED                                                                          [ 76%]
tests/test_mpdhooks.py::SpecificHooksTest::test_song_hook PASSED                                                                                       [ 78%]
tests/test_mpdhooks.py::SpecificHooksTest::test_state_hook PASSED                                                                                      [ 81%]
tests/test_mpdhooks.py::SpecificHooksTest::test_status_hook PASSED                                                                                     [ 84%]
tests/test_utils.py::ExtractPatternTest::test_empty_format PASSED                                                                                      [ 86%]
tests/test_utils.py::ExtractPatternTest::test_newstyle_format PASSED                                                                                   [ 89%]
tests/test_utils.py::ExtractPatternTest::test_non_dict PASSED                                                                                          [ 92%]
tests/test_utils.py::ExtractPatternTest::test_partial PASSED                                                                                           [ 94%]
tests/test_utils.py::ExtractPatternTest::test_repeated PASSED                                                                                          [ 97%]
tests/test_utils.py::ExtractPatternTest::test_success PASSED                                                                                           [100%]

========================================================================== FAILURES ==========================================================================
_________________________________________________________ DisplayPatternTests.test_multiple_options __________________________________________________________

self = <tests.test_display_pattern.DisplayPatternTests testMethod=test_multiple_options>

    def test_multiple_options(self):
        pattern = self.parse([
>           """{state} {song format=%(artist)s,speed=2} {elapsed}""",
        ])

tests/test_display_pattern.py:44:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_display_pattern.py:13: in parse
    pattern.parse()
mpdlcd/display_pattern.py:52: in parse
    fields.append(self.field_registry.create(kind, **options))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <mpdlcd.display_fields.FieldRegistry object at 0x7edb90133b10>, name = 'state', kwargs = {}

    def create(self, name, **kwargs):
        if name not in self._REGISTRY:
            raise FieldRegistryError(
                "Unknown field name '%s' (available: %s)"
>               % (name, ', '.join(self._REGISTRY.keys())))
E           mpdlcd.display_fields.FieldRegistryError: Unknown field name 'state' (available: some_field)

mpdlcd/display_fields.py:43: FieldRegistryError
__________________________________________________________ DisplayPatternTests.test_multiple_quotes __________________________________________________________

self = <tests.test_display_pattern.DisplayPatternTests testMethod=test_multiple_quotes>

    def test_multiple_quotes(self):
        pattern = self.parse([
>           """{state} {song format="%(artist)s - %(title)s",speed=2,padding=" - "} {elapsed}""",
        ])

tests/test_display_pattern.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_display_pattern.py:13: in parse
    pattern.parse()
mpdlcd/display_pattern.py:52: in parse
    fields.append(self.field_registry.create(kind, **options))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <mpdlcd.display_fields.FieldRegistry object at 0x7edb90133dd0>, name = 'state', kwargs = {}

    def create(self, name, **kwargs):
        if name not in self._REGISTRY:
            raise FieldRegistryError(
                "Unknown field name '%s' (available: %s)"
>               % (name, ', '.join(self._REGISTRY.keys())))
E           mpdlcd.display_fields.FieldRegistryError: Unknown field name 'state' (available: some_field)

mpdlcd/display_fields.py:43: FieldRegistryError
______________________________________________________________ DisplayPatternTests.test_quoting ______________________________________________________________

self = <tests.test_display_pattern.DisplayPatternTests testMethod=test_quoting>

    def test_quoting(self):
        pattern = self.parse([
>           """{state} {song format="%(artist)s - %(title)s"} {elapsed}""",
        ])

tests/test_display_pattern.py:66:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_display_pattern.py:13: in parse
    pattern.parse()
mpdlcd/display_pattern.py:52: in parse
    fields.append(self.field_registry.create(kind, **options))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <mpdlcd.display_fields.FieldRegistry object at 0x7edb9005b910>, name = 'state', kwargs = {}

    def create(self, name, **kwargs):
        if name not in self._REGISTRY:
            raise FieldRegistryError(
                "Unknown field name '%s' (available: %s)"
>               % (name, ', '.join(self._REGISTRY.keys())))
E           mpdlcd.display_fields.FieldRegistryError: Unknown field name 'state' (available: some_field)

mpdlcd/display_fields.py:43: FieldRegistryError
__________________________________________________________ DisplayPatternTests.test_simple_pattern ___________________________________________________________

self = <tests.test_display_pattern.DisplayPatternTests testMethod=test_simple_pattern>

    def test_simple_pattern(self):
        pattern = self.parse([
>           """{state} {song format=%(artist)s} {elapsed}""",
        ])

tests/test_display_pattern.py:23:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_display_pattern.py:13: in parse
    pattern.parse()
mpdlcd/display_pattern.py:52: in parse
    fields.append(self.field_registry.create(kind, **options))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <mpdlcd.display_fields.FieldRegistry object at 0x7edb9010f8d0>, name = 'state', kwargs = {}

    def create(self, name, **kwargs):
        if name not in self._REGISTRY:
            raise FieldRegistryError(
                "Unknown field name '%s' (available: %s)"
>               % (name, ', '.join(self._REGISTRY.keys())))
E           mpdlcd.display_fields.FieldRegistryError: Unknown field name 'state' (available: some_field)

mpdlcd/display_fields.py:43: FieldRegistryError
================================================================== short test summary info ===================================================================
FAILED tests/test_display_pattern.py::DisplayPatternTests::test_multiple_options - mpdlcd.display_fields.FieldRegistryError: Unknown field name 'state' (av...
FAILED tests/test_display_pattern.py::DisplayPatternTests::test_multiple_quotes - mpdlcd.display_fields.FieldRegistryError: Unknown field name 'state' (ava...
FAILED tests/test_display_pattern.py::DisplayPatternTests::test_quoting - mpdlcd.display_fields.FieldRegistryError: Unknown field name 'state' (available: ...
FAILED tests/test_display_pattern.py::DisplayPatternTests::test_simple_pattern - mpdlcd.display_fields.FieldRegistryError: Unknown field name 'state' (avai...
================================================================ 4 failed, 34 passed in 0.93s ================================================================

ConiKost avatar Aug 29 '20 21:08 ConiKost