File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -121,15 +121,21 @@ def test_link_objects(self):
121121
122122 def test_new_tag (self ):
123123 self .api .auth_api_key (os .getenv ("YETI_API_KEY" ))
124- tag = self .api .new_tag ({ "name" : " testTag" , " description" : "test" })
124+ self .api .new_tag (" testTag" , description = "test" })
125125 self .assertEqual (tag ["name" ], "testTag" )
126126 self .assertEqual (tag ["description" ], "test" )
127127
128128 def test_search_tags (self ):
129129 self .api .auth_api_key (os .getenv ("YETI_API_KEY" ))
130- self .api .new_tag ({ "name" : " testSearchTag" , " description" : "test" } )
130+ self .api .new_tag (" testSearchTag" , description = "testDesc" )
131131 time .sleep (5 )
132- tags = self .api .search_tags (name = "test" )
132+
133+ tags = self .api .search_tags (name = "testSearch" )
134+ self .assertEqual (len (tags ), 1 )
135+ self .assertEqual (tags [0 ]["name" ], "testSearchTag" )
136+ self .assertEqual (tags [0 ]["description" ], "test" )
137+
138+ tags = self .api .search_tags (name = "desc" )
133139 self .assertEqual (len (tags ), 1 )
134140 self .assertEqual (tags [0 ]["name" ], "testSearchTag" )
135141 self .assertEqual (tags [0 ]["description" ], "test" )
You can’t perform that action at this time.
0 commit comments