MCPcopy Create free account
hub / github.com/SINGROUP/dscribe / assert_dtype

Function assert_dtype

tests/conftest.py:415–420  ·  view source on GitHub ↗

Test that the requested data type is respected

(descriptor_func, dtype, sparse)

Source from the content-addressed store, hash-verified

413
414
415def assert_dtype(descriptor_func, dtype, sparse):
416 """Test that the requested data type is respected"""
417 system = get_simple_finite()
418 desc = descriptor_func(dtype=dtype, sparse=sparse)([system])
419 features = desc.create(get_simple_finite())
420 assert features.dtype == dtype
421
422
423def assert_sparse(descriptor_func):

Callers 4

test_dtypeFunction · 0.90
test_dtypeFunction · 0.90
test_dtypeFunction · 0.90
test_dtypeFunction · 0.90

Calls 2

get_simple_finiteFunction · 0.85
createMethod · 0.45

Tested by

no test coverage detected