Skip to content

Commit

Permalink
feat(models): Add unittest for Ref model.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayush0Chaudhary committed Nov 26, 2022
1 parent 57706cd commit 236183a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/models/github/test_ref.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import unittest

from bot.models.github.ref import Ref


class RefTest(unittest.TestCase):

def test_should_create_Ref(self):
ref = Ref(name="hey this is unittest ref", ref_type="branch")
self.assertEqual(str(ref), "hey this is unittest ref")

0 comments on commit 236183a

Please sign in to comment.