From 236183a9feecb7a6d8da9b61f98a87eebee12d51 Mon Sep 17 00:00:00 2001 From: Ayush0Chaudhary Date: Sat, 26 Nov 2022 05:37:25 +0530 Subject: [PATCH] feat(models): Add unittest for Ref model. --- tests/models/github/test_ref.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/models/github/test_ref.py diff --git a/tests/models/github/test_ref.py b/tests/models/github/test_ref.py new file mode 100644 index 0000000..5e35151 --- /dev/null +++ b/tests/models/github/test_ref.py @@ -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")