Browse Source

test(node): Add test for component for c4 model

pull/1000/head
Jeongseop Lim 6 months ago
parent
commit
9f73c4e6a1
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tests/test_c4.py

+ 2
- 1
tests/test_c4.py View File

@@ -5,7 +5,7 @@ import unittest


from diagrams import Diagram from diagrams import Diagram
from diagrams import setcluster, setdiagram from diagrams import setcluster, setdiagram
from diagrams.c4 import Person, Container, Database, System, SystemBoundary, Relationship
from diagrams.c4 import Person, Container, Database, Component, System, SystemBoundary, Relationship




class C4Test(unittest.TestCase): class C4Test(unittest.TestCase):
@@ -25,6 +25,7 @@ class C4Test(unittest.TestCase):
person = Person("person", "A person.") person = Person("person", "A person.")
container = Container("container", "Java application", "The application.") container = Container("container", "Java application", "The application.")
database = Database("database", "Oracle database", "Stores information.") database = Database("database", "Oracle database", "Stores information.")
component = Component("component", "Sign In Controller", "A component.")


def test_external_nodes(self): def test_external_nodes(self):
with Diagram(name=self.name, show=False): with Diagram(name=self.name, show=False):


Loading…
Cancel
Save