Skip to content

Commit

Permalink
added tests for is_valid_uri
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenZcience committed Sep 15, 2023
1 parent 2708539 commit 9e4f711
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cat_win/tests/test_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
import random

from cat_win.tests.mocks.error import ErrorDefGen
from cat_win.util.urls import sep_valid_urls, read_url
from cat_win.util.urls import is_valid_uri, sep_valid_urls, read_url

class TestUrls(TestCase):
def test_is_valid_uri_valueerror(self):
self.assertEqual(is_valid_uri('invalid uri'), False)

def test_sep_valid_urls(self):
random.seed(1)
valid_expected = [
Expand Down

0 comments on commit 9e4f711

Please sign in to comment.