Remove the colour range function as it will not be used
This commit is contained in:
@@ -24,7 +24,7 @@ import time
|
||||
import pytest
|
||||
|
||||
from nw.common import (
|
||||
checkString, checkBool, checkInt, colRange, formatInt, transferCase,
|
||||
checkString, checkBool, checkInt, formatInt, transferCase,
|
||||
fuzzyTime, checkHandle, formatTimeStamp, formatTime, hexToInt,
|
||||
makeFileNameSafe, isHandle, isTitleTag, isItemClass, isItemType,
|
||||
isItemLayout, numberToRoman
|
||||
@@ -191,34 +191,6 @@ def testBaseCommon_HexToInt():
|
||||
|
||||
# END Test testBaseCommon_HexToInt
|
||||
|
||||
@pytest.mark.base
|
||||
def testBaseCommon_ColRange():
|
||||
"""Test the colRange function.
|
||||
"""
|
||||
assert colRange([0, 0], [0, 0], 0) is None
|
||||
assert cmpList(
|
||||
colRange([200, 50, 0], [50, 200, 0], 1),
|
||||
[200, 50, 0]
|
||||
)
|
||||
assert cmpList(
|
||||
colRange([200, 50, 0], [50, 200, 0], 2),
|
||||
[[200, 50, 0], [50, 200, 0]]
|
||||
)
|
||||
assert cmpList(
|
||||
colRange([200, 50, 0], [50, 200, 0], 3),
|
||||
[[200, 50, 0], [125, 125, 0], [50, 200, 0]]
|
||||
)
|
||||
assert cmpList(
|
||||
colRange([200, 50, 0], [50, 200, 0], 4),
|
||||
[[200, 50, 0], [150, 100, 0], [100, 150, 0], [50, 200, 0]]
|
||||
)
|
||||
assert cmpList(
|
||||
colRange([200, 50, 0], [50, 200, 0], 5),
|
||||
[[200, 50, 0], [162, 87, 0], [124, 124, 0], [86, 161, 0], [50, 200, 0]]
|
||||
)
|
||||
|
||||
# END Test testBaseCommon_ColRange
|
||||
|
||||
@pytest.mark.base
|
||||
def testBaseCommon_FormatTimeStamp():
|
||||
"""Test the formatTimeStamp function.
|
||||
|
||||
Reference in New Issue
Block a user