Skip to content

Commit 580e480

Browse files
committed
Add test
1 parent fe0e6ff commit 580e480

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

python/jupytercad_lab/jupytercad_lab/notebook/tests/__init__.py

Whitespace-only changes.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import os
2+
import unittest
3+
4+
from jupytercad_lab import CadDocument
5+
6+
7+
class ProjectCreation(unittest.TestCase):
8+
filename = "test.jcad"
9+
10+
def setUp(self):
11+
if os.path.isfile(self.filename):
12+
os.remove(self.filename)
13+
14+
def tearDown(self):
15+
if os.path.isfile(self.filename):
16+
os.remove(self.filename)
17+
18+
def test_creation(self):
19+
self.doc = CadDocument(self.filename)
20+
21+
assert os.path.isfile(self.filename)

0 commit comments

Comments
 (0)