Skip to content

Commit

Permalink
fixup! Initial doc: installation, quickstart, API doc
Browse files Browse the repository at this point in the history
  • Loading branch information
masklinn committed Mar 24, 2024
1 parent 32e2ff6 commit 3329230
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_re2.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import pytest # type: ignore

from ua_parser import Domain, PartialParseResult
from ua_parser import Domain, ParseResult

re2 = pytest.importorskip("ua_parser.re2")


def test_empty(capfd: pytest.CaptureFixture[str]) -> None:
r = re2.Resolver(([], [], []))
assert r("", Domain.ALL) == PartialParseResult(Domain.ALL, None, None, None, "")
assert r("", Domain.ALL) == ParseResult(Domain.ALL, None, None, None, "")
out, err = capfd.readouterr()
assert out == ""
assert err == ""

0 comments on commit 3329230

Please sign in to comment.