Skip to content

Commit 2940c1c

Browse files
committed
Migrate to pytest style
1 parent 758fa20 commit 2940c1c

File tree

1 file changed

+3
-7
lines changed
  • python/jupytergis_lab/jupytergis_lab/notebook/tests

1 file changed

+3
-7
lines changed

python/jupytergis_lab/jupytergis_lab/notebook/tests/test_api.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
import os
2-
import unittest
32

43
from jupytergis_lab import GISDocument
54

65

7-
class VectorTileTests(unittest.TestCase):
8-
def setUp(self):
6+
class TestDocument:
7+
def setup_method(self):
98
self.doc = GISDocument()
109

1110

12-
class TiffLayerTests(unittest.TestCase):
13-
def setUp(self):
14-
self.doc = GISDocument()
15-
11+
class TestTiffLayer(TestDocument):
1612
def test_sourcelayer(self):
1713
color = self.doc.create_color_expr(
1814
interpolation_type="linear",

0 commit comments

Comments
 (0)