-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore coverage in areas we don't currently care about coverage
Ignore in registry.py as while covered, the information is not helpful. Ignore coverage in Canonicalization as there are no real are no tests for this currently, and we simply want to make sure we are covering all the pre-canonicalization logic.
- Loading branch information
1 parent
b6d8dcd
commit db36b41
Showing
5 changed files
with
62 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[run] | ||
omit= | ||
soupsieve/css_lang/registry.py | ||
|
||
[report] | ||
omit= | ||
soupsieve/css_lang/registry.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
""" | ||
Test language tag/range canonicalization. | ||
``` | ||
# grandfathered registrations | ||
'zh-hakka' => "hak" | ||
# canonical and extlang forms | ||
'sgn-jsl' => "jsl" => "sgn-jsl" | ||
# variants | ||
'ja-Latn-hepburn-heploc' => "ja-Latn-hepburn-alalc97" | ||
# etc. | ||
``` | ||
""" | ||
from __future__ import unicode_literals | ||
import unittest | ||
|
||
|
||
class TestLangCanonicalization(unittest.TestCase): | ||
"""Test language canonicalization.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters