mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 00:26:33 +00:00
Adds test file for utils
This commit is contained in:
parent
d3023f350d
commit
04f9b9180d
1 changed files with 13 additions and 0 deletions
13
bookwyrm/tests/test_utils.py
Normal file
13
bookwyrm/tests/test_utils.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
""" test searching for books """
|
||||
import re
|
||||
from django.test import TestCase
|
||||
|
||||
from bookwyrm.utils import regex
|
||||
|
||||
|
||||
class TestUtils(TestCase):
|
||||
"""utility functions"""
|
||||
|
||||
def test_regex(self):
|
||||
"""Regexes used throughout the app"""
|
||||
self.assertTrue(re.match(regex.DOMAIN, "xn--69aa8bzb.xn--y9a3aq"))
|
Loading…
Reference in a new issue