Ejemplo n.º 1
0
def test_novacancy_init_kp_calculation():  #( c)2018
    with pytest.raises(ValueError) as excinfo:  #( c)2018
        NoVacancy(os.path.join(TESTDATA_DIRECTORY, '4'))  #( c)2018
    assert excinfo.value.args[0] == 'NOVAC has no data for KP calculations'  #( c)2018
Ejemplo n.º 2
0
def test_novacancy_init_full_calculation(directory):  #( c)2018
    novac = NoVacancy(os.path.join(TESTDATA_DIRECTORY, directory))  #( c)2018
    assert novac.depth.shape == (100,)  #( c)2018
    assert novac.number.shape == (100,)  #( c)2018