==================================================================================================================================== FAILURES =====================================================================================================================================
________________________________________________________________________________________________________________________________ test_update_cache ________________________________________________________________________________________________________________________________

    def test_update_cache():
        """make sure some text is returned"""
        bot = MockBot()
        test_plugin = TestPlugin("nametest", bot)
        room = MockRoom()
        ## create a new empty file
        cache = open('tmp/dates.cache', "w", encoding='utf-8')
        cache.close()
        old = getmtime('tmp/dates.cache')
        test_plugin._update_cache(room)
        new = getmtime('tmp/dates.cache')
>       assert new > old
E       assert 1548195473.4237163 > 1548195473.4237163

tests/test_datesplugin.py:59: AssertionError
________________________________________________________________________________________________________________________________ test_get_version _________________________________________________________________________________________________________________________________

    def test_get_version():
        """make sure some text is returned"""
        bot = MockBot()
        mtn_plugin = MaintenancePlugin("nametest", bot)
        version = mtn_plugin.get_version()
>       assert len(version) == 5
E       AssertionError: assert 14 == 5
E        +  where 14 = len('no version set')

tests/test_maintenanceplugin.py:13: AssertionError
________________________________________________________________________________________________________________________________ test_get_history _________________________________________________________________________________________________________________________________

    def test_get_history():
        """make sure some text is returned"""
        bot = MockBot()
        mtn_plugin = MaintenancePlugin("nametest", bot)
>       history = mtn_plugin.get_history()

tests/test_maintenanceplugin.py:27:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <MatrixByteBot.plugins.maintenanceplugin.MaintenancePlugin object at 0x7f613ab6afd0>

    def get_history(self):
        """ extract a few lines from the CHANGELOG file"""
        length = self.config.getint('historylength')
        if not self.first_run['history']:
            pass
        else:
            pattern = re.compile(self.config['historypattern'])
>           with open(self.config['historyfile']) as file:
E           FileNotFoundError: [Errno 2] No such file or directory: 'CHANGELOG'

plugins/maintenanceplugin.py:76: FileNotFoundError
================================================================================================================================ warnings summary =================================================================================================================================
plugins/datesplugin.py:25
  /home/stephan/MatrixByteBot/plugins/datesplugin.py:25: PytestWarning: cannot collect test class 'DatesPlugin' because it has a __init__ constructor
    class DatesPlugin(Plugin):

-- Docs: https://docs.pytest.org/en/latest/warnings.html

----------- coverage: platform linux, python 3.5.3-final-0 -----------
Coverage XML written to file coverage.xml

================================================================================================================= 3 failed, 14 passed, 1 warnings in 3.61 seconds =================================================================================================================