Skip to content

Commit

Permalink
add: test if root is created automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Sep 28, 2024
1 parent 0cfdbf3 commit dd15719
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_core/test_workspace.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from sqlalchemy import select
from tests.test_core.core_base import CoreTestBase
from dooit.api import Workspace

Expand Down Expand Up @@ -91,3 +92,9 @@ def test_nest_level(self):

w = w.add_workspace()
self.assertEqual(w.nest_level, 2)

def test_root(self):
query = select(Workspace)
workspaces = self.session.execute(query).scalars().all()

self.assertEqual(len(workspaces), 0)

0 comments on commit dd15719

Please sign in to comment.