Skip to content

Commit

Permalink
Update test_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jrycw committed Nov 23, 2024
1 parent a4d8fbc commit 4d954a7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from collections.abc import Generator
from pathlib import Path
import pytest


from great_tables import GT, exibble
from great_tables._tbl_data import is_na
from great_tables._utils import (
Expand All @@ -14,6 +16,7 @@
_migrate_unformatted_to_output,
OrderedSet,
_str_scalar_to_list,
is_valid_http_schema,
heading_has_subtitle,
heading_has_title,
seq_groups,
Expand Down Expand Up @@ -215,3 +218,10 @@ def test_migrate_unformatted_to_output_html():
)

assert is_na(migrated._body.body, migrated._body.body["char"].tolist()).tolist() == [True, True]


@pytest.mark.parametrize(
"url", ["http://posit.co/", "http://posit.co", "https://posit.co/", "https://posit.co"]
)
def test_is_valid_http_schema(url: str):
assert is_valid_http_schema(url)

0 comments on commit 4d954a7

Please sign in to comment.