Skip to content

Commit

Permalink
Merge pull request #18 from CIAT-DAPA/develop
Browse files Browse the repository at this point in the history
trace added to typecontent model
  • Loading branch information
CarlosNasayo authored Sep 18, 2023
2 parents fc41387 + 1bc34c2 commit c906880
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/ormWP/models/type_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ class Typecontent(Document):
meta = {
'collection': 'typcontent'
}
name=StringField(max_length=100,required=True)
name=StringField(max_length=100,required=True)
trace= DictField()
3 changes: 2 additions & 1 deletion src/tests/test_type_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def setUp(self):

# Crea un objeto TypeContent de prueba
self.typecontent = Typecontent(
name='Livehood'
name='Livehood',
trace={"created": datetime.now(), "updated": datetime.now(), "enabled": True}
)

def tearDown(self):
Expand Down

0 comments on commit c906880

Please sign in to comment.