MCPcopy Create free account
hub / github.com/Vanderhoof/PyDBML / Project

Class Project

pydbml/_classes/project.py:9–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8
9class Project(DBMLObject):
10 dont_compare_fields = ('database',)
11
12 def __init__(self,
13 name: str,
14 items: Optional[Dict[str, str]] = None,
15 note: Optional[Union[Note, str]] = None,
16 comment: Optional[str] = None):
17 self.database = None
18 self.name = name
19 self.items = items or {}
20 self.note = Note(note)
21 self.comment = comment
22
23 def __repr__(self):
24 """<Project 'myproject'>"""
25 return f'<Project {self.name!r}>'
26
27 @property
28 def note(self):
29 return self._note
30
31 @note.setter
32 def note(self, val: Note) -> None:
33 self._note = val
34 val.parent = self

Callers 13

test_add_projectMethod · 0.90
test_delete_projectMethod · 0.90
test_deleteMethod · 0.90
create_databaseMethod · 0.90
test_onelineMethod · 0.90
test_multilineMethod · 0.90
test_multipleMethod · 0.90
test_no_noteMethod · 0.90
test_noteMethod · 0.90
test_note_propertyFunction · 0.90
test_reprFunction · 0.90

Calls

no outgoing calls

Tested by 12

test_add_projectMethod · 0.72
test_delete_projectMethod · 0.72
test_deleteMethod · 0.72
create_databaseMethod · 0.72
test_onelineMethod · 0.72
test_multilineMethod · 0.72
test_multipleMethod · 0.72
test_no_noteMethod · 0.72
test_noteMethod · 0.72
test_note_propertyFunction · 0.72
test_reprFunction · 0.72