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 3329230 commit 8afa6a5
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, ParseResult
from ua_parser import Domain, PartialResult

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


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

0 comments on commit 8afa6a5

Please sign in to comment.