def add_test_data(db_session): add_fake_test_runs() db_session.add( TestEndpoint(endpoint_id=ENDPOINT_ID, test_id=1, duration=1234, app_version="1.0", travis_job_id="1", time_added=datetime.datetime.utcnow())) db_session.add( TestEndpoint(endpoint_id=ENDPOINT_ID, test_id=1, duration=2345, app_version="1.0", travis_job_id="1", time_added=datetime.datetime.utcnow()))
def test_build_performance_endpoints(self): """ Just retrieve the content and check if nothing breaks """ add_fake_test_runs() test_admin_secure(self, 'testmonitor/endpoint_build_performance')
def test_test_result(self): """ Just retrieve the content and check if nothing breaks """ add_fake_test_runs() test_admin_secure(self, 'testmonitor/{}'.format(NAME))
def setUp(self): set_test_environment() clear_db() add_fake_data() add_fake_test_runs()