Skip to content

Commit 236183a

Browse files
feat(models): Add unittest for Ref model.
1 parent 57706cd commit 236183a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/models/github/test_ref.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import unittest
2+
3+
from bot.models.github.ref import Ref
4+
5+
6+
class RefTest(unittest.TestCase):
7+
8+
def test_should_create_Ref(self):
9+
ref = Ref(name="hey this is unittest ref", ref_type="branch")
10+
self.assertEqual(str(ref), "hey this is unittest ref")

0 commit comments

Comments
 (0)