#24 Create project structure for unit tests
Refactor project's structure closes #24
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from utils.pbmformator import formatPbm
|
||||
from utils.savetofile import matrixToFile
|
||||
from pcbdevice.utils.pbmformator import formatPbm
|
||||
from pcbdevice.utils.savetofile import matrixToFile
|
||||
|
||||
if __name__ == "__main__":
|
||||
# Usage example
|
||||
0
pcbdevice/tests/__init__.py
Normal file
0
pcbdevice/tests/__init__.py
Normal file
|
Can't render this file because it is too large.
|
|
Can't render this file because it is too large.
|
|
Can't render this file because it is too large.
|
0
pcbdevice/tests/utils/__init__.py
Normal file
0
pcbdevice/tests/utils/__init__.py
Normal file
5
pcbdevice/tests/utils/test_formatPbm.py
Normal file
5
pcbdevice/tests/utils/test_formatPbm.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from unittest import TestCase
|
||||
|
||||
|
||||
class TestFormatPbm(TestCase):
|
||||
pass
|
||||
0
pcbdevice/utils/__init__.py
Normal file
0
pcbdevice/utils/__init__.py
Normal file
@@ -3,6 +3,8 @@ import math
|
||||
"""
|
||||
Reformat the file receive by the binary to ascii converter to have matrix with the right width and height
|
||||
"""
|
||||
|
||||
|
||||
def formatPbm(pbmFile):
|
||||
dimensionLineIndex = 2
|
||||
completeFile = []
|
||||
Reference in New Issue
Block a user