Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

src/q/u/quality_report-1.0/unittests/metric_source/history_tests.py   quality_report(Download)
import datetime
import unittest
from qualitylib.metric_source import History
 
 
    def setUp(self):  # pylint: disable=invalid-name
        self.__history = History('non-existing file', file_=FakeFile)
 
    def test_no_recent_history(self):
        ''' Test that there is no history when the history file does not 
    def setUp(self):  # pylint: disable=invalid-name
        self.__history = History('failing file', file_=FailingFile)
 
    def test_no_recent_history(self):
        ''' Test that there is no history when the history file fails to 
    def setUp(self):  # pylint: disable=invalid-name
        self.__history = History('fake file', file_=FakeFile, recent_history=3)
        FakeFile.written_content = [] 
 
    def test_recent_history(self):