We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13aaeb8 commit 051abe9Copy full SHA for 051abe9
1 file changed
tests/test_imageslide.py
@@ -62,13 +62,17 @@ def test_context_manager(self):
62
)
63
64
65
-class TestImage(unittest.TestCase):
+class _SlideTest:
66
def setUp(self):
67
- self.osr = ImageSlide(file_path('boxes.png'))
+ self.osr = ImageSlide(file_path(self.FILENAME))
68
69
def tearDown(self):
70
self.osr.close()
71
72
+
73
+class TestImage(_SlideTest, unittest.TestCase):
74
+ FILENAME = 'boxes.png'
75
76
def test_repr(self):
77
self.assertEqual(repr(self.osr), 'ImageSlide(%r)' % file_path('boxes.png'))
78
0 commit comments