rename test files
This commit is contained in:
parent
9a7ecb4a07
commit
1787670afa
1
tests/.gitignore
vendored
Normal file
1
tests/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
test.xml
|
||||||
@ -2,27 +2,9 @@ import _init_path
|
|||||||
|
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
|
|
||||||
from labelImg import get_main_app
|
|
||||||
|
|
||||||
from pascal_voc_io import PascalVocWriter
|
from pascal_voc_io import PascalVocWriter
|
||||||
from pascal_voc_io import PascalVocReader
|
from pascal_voc_io import PascalVocReader
|
||||||
|
|
||||||
|
|
||||||
class TestMainWindow(TestCase):
|
|
||||||
|
|
||||||
app = None
|
|
||||||
win = None
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
self.app, self.win = get_main_app()
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
self.win.close()
|
|
||||||
self.app.quit()
|
|
||||||
|
|
||||||
def test_noop(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
# Test Write/Read
|
# Test Write/Read
|
||||||
writer = PascalVocWriter('tests', 'test', (512, 512, 1), localImgPath='tests/test.bmp')
|
writer = PascalVocWriter('tests', 'test', (512, 512, 1), localImgPath='tests/test.bmp')
|
||||||
difficult = 1
|
difficult = 1
|
||||||
20
tests/test_qt.py
Normal file
20
tests/test_qt.py
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
|
||||||
|
from unittest import TestCase
|
||||||
|
|
||||||
|
from labelImg import get_main_app
|
||||||
|
|
||||||
|
|
||||||
|
class TestMainWindow(TestCase):
|
||||||
|
|
||||||
|
app = None
|
||||||
|
win = None
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
self.app, self.win = get_main_app()
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
self.win.close()
|
||||||
|
self.app.quit()
|
||||||
|
|
||||||
|
def test_noop(self):
|
||||||
|
pass
|
||||||
Loading…
x
Reference in New Issue
Block a user