Remove encoding line and add spaces between classes and functions, tests
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
novelWriter – Common Functions Tester
|
||||
=====================================
|
||||
@@ -30,6 +29,7 @@ from nw.common import (
|
||||
isItemLayout, numberToRoman
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.base
|
||||
def testBaseCommon_CheckString():
|
||||
"""Test the checkString function.
|
||||
@@ -44,6 +44,7 @@ def testBaseCommon_CheckString():
|
||||
|
||||
# END Test testBaseCommon_CheckString
|
||||
|
||||
|
||||
@pytest.mark.base
|
||||
def testBaseCommon_CheckInt():
|
||||
"""Test the checkInt function.
|
||||
@@ -57,6 +58,7 @@ def testBaseCommon_CheckInt():
|
||||
|
||||
# END Test testBaseCommon_CheckInt
|
||||
|
||||
|
||||
@pytest.mark.base
|
||||
def testBaseCommon_CheckBool():
|
||||
"""Test the checkBool function.
|
||||
@@ -75,6 +77,7 @@ def testBaseCommon_CheckBool():
|
||||
|
||||
# END Test testBaseCommon_CheckBool
|
||||
|
||||
|
||||
@pytest.mark.base
|
||||
def testBaseCommon_CheckHandle():
|
||||
"""Test the checkHandle function.
|
||||
@@ -88,6 +91,7 @@ def testBaseCommon_CheckHandle():
|
||||
|
||||
# END Test testBaseCommon_CheckHandle
|
||||
|
||||
|
||||
@pytest.mark.base
|
||||
def testBaseCommon_IsHandle():
|
||||
"""Test the isHandle function.
|
||||
@@ -102,6 +106,7 @@ def testBaseCommon_IsHandle():
|
||||
|
||||
# END Test testBaseCommon_IsHandle
|
||||
|
||||
|
||||
@pytest.mark.base
|
||||
def testBaseCommon_IsTitleTag():
|
||||
"""Test the isItemClass function.
|
||||
@@ -119,6 +124,7 @@ def testBaseCommon_IsTitleTag():
|
||||
|
||||
# END Test testBaseCommon_IsTitleTag
|
||||
|
||||
|
||||
@pytest.mark.base
|
||||
def testBaseCommon_IsItemClass():
|
||||
"""Test the isItemClass function.
|
||||
@@ -141,6 +147,7 @@ def testBaseCommon_IsItemClass():
|
||||
|
||||
# END Test testBaseCommon_IsItemClass
|
||||
|
||||
|
||||
@pytest.mark.base
|
||||
def testBaseCommon_IsItemType():
|
||||
"""Test the isItemType function.
|
||||
@@ -157,6 +164,7 @@ def testBaseCommon_IsItemType():
|
||||
|
||||
# END Test testBaseCommon_IsItemType
|
||||
|
||||
|
||||
@pytest.mark.base
|
||||
def testBaseCommon_IsItemLayout():
|
||||
"""Test the isItemLayout function.
|
||||
@@ -177,6 +185,7 @@ def testBaseCommon_IsItemLayout():
|
||||
|
||||
# END Test testBaseCommon_IsItemLayout
|
||||
|
||||
|
||||
@pytest.mark.base
|
||||
def testBaseCommon_HexToInt():
|
||||
"""Test the hexToInt function.
|
||||
@@ -190,6 +199,7 @@ def testBaseCommon_HexToInt():
|
||||
|
||||
# END Test testBaseCommon_HexToInt
|
||||
|
||||
|
||||
@pytest.mark.base
|
||||
def testBaseCommon_FormatTimeStamp():
|
||||
"""Test the formatTimeStamp function.
|
||||
@@ -200,6 +210,7 @@ def testBaseCommon_FormatTimeStamp():
|
||||
|
||||
# END Test testBaseCommon_FormatTimeStamp
|
||||
|
||||
|
||||
@pytest.mark.base
|
||||
def testBaseCommon_FormatTime():
|
||||
"""Test the formatTime function.
|
||||
@@ -222,6 +233,7 @@ def testBaseCommon_FormatTime():
|
||||
|
||||
# END Test testBaseCommon_FormatTime
|
||||
|
||||
|
||||
@pytest.mark.base
|
||||
def testBaseCommon_FormatInt():
|
||||
"""Test the formatInt function.
|
||||
@@ -237,6 +249,7 @@ def testBaseCommon_FormatInt():
|
||||
|
||||
# END Test testBaseCommon_FormatInt
|
||||
|
||||
|
||||
@pytest.mark.base
|
||||
def testBaseCommon_TransferCase():
|
||||
"""Test the transferCase function.
|
||||
@@ -251,6 +264,7 @@ def testBaseCommon_TransferCase():
|
||||
|
||||
# END Test testBaseCommon_TransferCase
|
||||
|
||||
|
||||
@pytest.mark.base
|
||||
def testBaseCommon_FuzzyTime():
|
||||
"""Test the fuzzyTime function.
|
||||
@@ -286,6 +300,7 @@ def testBaseCommon_FuzzyTime():
|
||||
|
||||
# END Test testBaseCommon_FuzzyTime
|
||||
|
||||
|
||||
@pytest.mark.base
|
||||
def testBaseCommon_MakeFileNameSafe():
|
||||
"""Test the fuzzyTime function.
|
||||
@@ -297,6 +312,7 @@ def testBaseCommon_MakeFileNameSafe():
|
||||
|
||||
# END Test testBaseCommon_MakeFileNameSafe
|
||||
|
||||
|
||||
@pytest.mark.core
|
||||
def testBaseCommon_RomanNumbers():
|
||||
"""Test conversion of integers to Roman numbers.
|
||||
|
||||
Reference in New Issue
Block a user