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