diff --git a/tests/.gitignore b/tests/.gitignore new file mode 100644 index 00000000..a6535f35 --- /dev/null +++ b/tests/.gitignore @@ -0,0 +1 @@ +test.xml diff --git a/tests/test.py b/tests/test_io.py similarity index 62% rename from tests/test.py rename to tests/test_io.py index b3b3b797..84867e8b 100644 --- a/tests/test.py +++ b/tests/test_io.py @@ -2,27 +2,9 @@ import _init_path from unittest import TestCase -from labelImg import get_main_app - from pascal_voc_io import PascalVocWriter 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 writer = PascalVocWriter('tests', 'test', (512, 512, 1), localImgPath='tests/test.bmp') difficult = 1 diff --git a/tests/test_qt.py b/tests/test_qt.py new file mode 100644 index 00000000..869094de --- /dev/null +++ b/tests/test_qt.py @@ -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