Files
beets/test
Carl Suster bed89df69a Fix test_ui:test_version under pytest
The test `CommonOptionsParserCliTest.test_version` was passing with nose
but failing with pytest (see output below). The reason for the failure
seemed to be that the `test` plugin was loaded when it wasn't expected
to be loaded, changing the output of the `version` command. I'm not sur
exactly why that was happening, but since that test already inherited
from `TestHelper`, just invoking the plugin load/unload helper was
enough to fix it. I also removed the line setting the `self.lib`
variable since that's already done in the helper.

---

self = <test.test_ui.CommonOptionsParserCliTest testMethod=test_version>

    def test_version(self):
        l = self.run_with_output(u'version')
        self.assertIn(u'Python version', l)
>       self.assertIn(u'no plugins loaded', l)
E       AssertionError: 'no plugins loaded' not found in 'beets version 1.4.8\nPython version 3.7.3rc1\nplugins: test\n'

test/test_ui.py:1292: AssertionError
2019-03-31 20:22:44 +11:00
..
2019-02-17 14:11:40 -05:00
2018-10-09 01:11:06 +01:00
2018-02-20 22:57:58 -05:00
2017-10-07 21:28:33 -07:00
2018-11-29 11:30:48 -02:00
2017-06-20 15:56:33 -04:00
2019-01-22 10:53:18 -08:00
2017-03-03 12:10:26 -06:00
2018-04-27 17:34:18 -04:00
2016-12-26 14:13:01 -06:00