changed nParam sParam
This commit is contained in:
parent
04556d5391
commit
3e2cdef0b0
|
|
@ -4,21 +4,21 @@ import rich
|
|||
|
||||
def test_wasInitialised():
|
||||
testenv = e.environment()
|
||||
for k in testenv.wasInitialised.values():
|
||||
for k in testenv._wasInitialised.values():
|
||||
assert k is False
|
||||
|
||||
|
||||
def test_integritycheck():
|
||||
testcheck = e.environment()
|
||||
customtest_p = [p for p in testcheck.mParams.keys()]
|
||||
customtest_v = [False for p in testcheck.mParams.values()]
|
||||
customtest_p = [p for p in testcheck._mParams.keys()]
|
||||
customtest_v = [False for p in testcheck._mParams.values()]
|
||||
# Test all False
|
||||
|
||||
# rich.inspect(testcheck)
|
||||
assert testcheck.integritycheck() is False
|
||||
|
||||
customtest_v[0] = True
|
||||
testcheck.wasInitialised = dict(zip(customtest_p, customtest_v))
|
||||
testcheck._wasInitialised = dict(zip(customtest_p, customtest_v))
|
||||
# Test first False
|
||||
|
||||
# rich.inspect(testcheck)
|
||||
|
|
@ -26,7 +26,7 @@ def test_integritycheck():
|
|||
|
||||
customtest_v[0] = False
|
||||
customtest_v[-1] = True
|
||||
testcheck.wasInitialised = dict(zip(customtest_p, customtest_v))
|
||||
testcheck._wasInitialised = dict(zip(customtest_p, customtest_v))
|
||||
# Test last False
|
||||
|
||||
# rich.inspect(testcheck)
|
||||
|
|
@ -34,14 +34,14 @@ def test_integritycheck():
|
|||
|
||||
customtest_v[-1] = False
|
||||
customtest_v[len(customtest_v)//2-1] = True
|
||||
testcheck.wasInitialised = dict(zip(customtest_p, customtest_v))
|
||||
testcheck._wasInitialised = dict(zip(customtest_p, customtest_v))
|
||||
# Test middle False
|
||||
|
||||
# rich.inspect(testcheck)
|
||||
assert testcheck.integritycheck() is False
|
||||
|
||||
customtest_v = [True for p in testcheck.mParams.values()]
|
||||
testcheck.wasInitialised = dict(zip(customtest_p, customtest_v))
|
||||
customtest_v = [True for p in testcheck._mParams.values()]
|
||||
testcheck._wasInitialised = dict(zip(customtest_p, customtest_v))
|
||||
# Test all True
|
||||
|
||||
# rich.inspect(testcheck)
|
||||
|
|
|
|||
Loading…
Reference in New Issue