tests.models.base_model

Base test case for models

Classes

class tests.models.base_model.ModelBaseCase

Bases: JsonTestCase, ABC

Base test case for models

EXPECT_MISSING_DATA: bool = True
REF_DATA_PATH: str
SAVE_NEW_DATA: bool = True
TEST_ARR_SIZE: int = 10
alpha_n = array([0.15      , 0.18888889, 0.22777778, 0.26666667, 0.30555556,        0.34444444, 0.38333333, 0.42222222, 0.46111111, 0.5       ])
model: Model
phase_arr = array([1., 0., 1., 0., 1., 0., 1., 0., 1., 0.])
classmethod setUpClass(model)
Parameters:

model (Model)

temp_arr = array([  1.,  12.,  23.,  34.,  45.,  56.,  67.,  78.,  89., 100.])
test_alpha_n()
test_alpha_plus()
test_class_is_valid()
test_critical_temp()
test_cs2()
test_e()
test_e_temp()
test_export()
test_p()
test_p_temp()
test_s()
test_s_temp()
test_temp()
test_theta()
test_w()
test_w_n()
w_arr1 = array([1.0000000e+00, 2.0736000e+04, 2.7984100e+05, 1.3363360e+06,        4.1006250e+06, 9.8344960e+06, 2.0151121e+07, 3.7015056e+07,        6.2742241e+07, 1.0000000e+08])
w_arr2 = array([1.00000000e+00, 1.61736060e+04, 2.04521307e+05, 9.39220961e+05,        2.80239148e+06, 6.57556848e+06, 1.32340183e+07, 2.39424699e+07,        4.00517066e+07, 6.30957344e+07])