diff options
| author | 2020-08-22 03:18:25 +0200 | |
|---|---|---|
| committer | 2020-08-22 03:18:25 +0200 | |
| commit | 503bfba6855d3019a2739bb1adce69c457a8b26e (patch) | |
| tree | 25316b0e1ef7c96a0e9c6ca707c6c2294f9c12c8 /pydis_site/tests | |
| parent | Move git SHA fetcher into utils. (diff) | |
Move git SHA fetcher into its own file.
Fix tests.
Diffstat (limited to 'pydis_site/tests')
| -rw-r--r-- | pydis_site/tests/test_utils.py | 11 | 
1 files changed, 11 insertions, 0 deletions
| diff --git a/pydis_site/tests/test_utils.py b/pydis_site/tests/test_utils.py new file mode 100644 index 00000000..f1419860 --- /dev/null +++ b/pydis_site/tests/test_utils.py @@ -0,0 +1,11 @@ +from django.test import TestCase + +from pydis_site.utils import get_git_sha +from pydis_site.utils.utils import GIT_SHA + + +class UtilsTests(TestCase): + +    def test_git_sha(self): +        """Test that the get_git_sha returns the correct SHA.""" +        self.assertEqual(get_git_sha(), GIT_SHA) | 
