Skip to content

Commit

Permalink
squash! Split precompiled data into a sub-project (and wheel)
Browse files Browse the repository at this point in the history
re-add testing of builtins to ensure compilation was correct
  • Loading branch information
masklinn committed Nov 18, 2024
1 parent d9664b3 commit 505d820
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
Parser,
Result,
UserAgent,
load_builtins,
load_lazy_builtins,
loaders,
)
from ua_parser.matchers import UserAgentMatcher
Expand All @@ -39,8 +41,10 @@
CORE_DIR / "regexes.yaml", loader=loaders.load_lazy
)
PARSERS = [
pytest.param(Parser(BasicResolver(data)), id="basic"),
pytest.param(Parser(BasicResolver(data_lazy)), id="lazy"),
pytest.param(Parser(BasicResolver(load_builtins())), id="basic"),
pytest.param(Parser(BasicResolver(load_lazy_builtins())), id="lazy"),
pytest.param(Parser(BasicResolver(data)), id="basic-yaml"),
pytest.param(Parser(BasicResolver(data_lazy)), id="lazy-yaml"),
]
try:
from ua_parser import re2
Expand Down

0 comments on commit 505d820

Please sign in to comment.