• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

feeluown / FeelUOwn / 9051095588 / 1
55%
master: 55%

Build:
DEFAULT BRANCH: master
Ran 12 May 2024 11:42AM UTC
Files 223
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 May 2024 11:40AM UTC coverage: 55.279%. Remained the same
9051095588.1

push

github

web-flow
tests: fix test_collection.py for Python 3.12 (#831)

Python 3.12 treats the typo as an error now:

```
=================================== FAILURES ===================================
_____________________________ test_collection_load _____________________________

tmp_path = PosixPath('/tmp/pytest-of-builduser/pytest-0/test_collection_load0')
song = SongModel(meta=<feeluown.library.models.ModelMeta object at 0x7acaf2177c50>, identifier='0', source='fake', state=<Mod...on=600000, children=[], genre='', date='', track='1/1', disc='1/1', pic_url='', media_flags=<MediaFlags.not_sure: 128>)
mocker = <pytest_mock.plugin.MockerFixture object at 0x7acad8c98b60>

    def test_collection_load(tmp_path, song, mocker):                                                                                                                                                                                                                                              mock_resolve = mocker.patch('feeluown.collection.resolve',
                                    return_value=song)
        path = tmp_path / 'test.fuo'
        path.touch()
        text = 'fuo://fake/songs/1  # hello - Tom'                                                                                                                                                                                                                                                 path.write_text(text)
        coll = Collection(str(path))
        coll.load()
>       mock_resolve.called_once_with(text)

tests/test_collection.py:15:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <MagicMock name='resolve' id='135011639070880'>
name = 'called_once_with'

    def __getattr__(self, name):
        if name in {'_mock_methods', '_mock_unsafe'}:
            raise AttributeError(name)
        elif self._mock_methods is not None:
            if name not in self._mock_methods or n... (continued)

9791 of 17712 relevant lines covered (55.28%)

0.55 hits per line

Source Files on job 9051095588.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 9051095588
  • b47107d8 on github
  • Prev Job for on master (#9021467447.1)
  • Next Job for on master (#9177567233.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc