Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wenh06 committed Jan 11, 2024
1 parent f33c105 commit 00720b0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
[![codecov](https://codecov.io/github/DeepPSP/sphinx-emoji-favicon/graph/badge.svg?token=XO53nHzvUM)](https://codecov.io/github/DeepPSP/sphinx-emoji-favicon)
[![pytest](https://github.com/DeepPSP/sphinx-emoji-favicon/actions/workflows/run-pytest.yml/badge.svg)](https://github.com/DeepPSP/sphinx-emoji-favicon/actions/workflows/run-pytest.yml)
[![license](https://img.shields.io/github/license/DeepPSP/sphinx-emoji-favicon?style=flat-square)](LICENSE)
![GitHub Release Date - Published_At](https://img.shields.io/github/release-date/DeepPSP/sphinx-emoji-favicon)
[![downloads](https://img.shields.io/pypi/dm/sphinx-emoji-favicon?style=flat-square)](https://pypistats.org/packages/sphinx-emoji-favicon)
![GitHub Release Date - Published_At](https://img.shields.io/github/release-date/DeepPSP/sphinx-emoji-favicon)
![GitHub commits since latest release (by SemVer including pre-releases)](https://img.shields.io/github/commits-since/DeepPSP/sphinx-emoji-favicon/latest)

A simple sphinx extension to add emoji favicon to your sphinx site.
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
sphinx
docutils
requests
emoji
13 changes: 12 additions & 1 deletion test/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
from emoji import EMOJI_DATA, LANGUAGES
from tqdm.auto import tqdm

from sphinx_emoji_favicon import _defalut_twemoji_latest_version, _str2emoji, _url_is_reachable, create_emoji_favicon_meta
from sphinx_emoji_favicon import (
_defalut_twemoji_latest_version,
_str2emoji,
_to_code_point,
_url_is_reachable,
create_emoji_favicon_meta,
)


def test_create_emoji_favicon_meta():
Expand Down Expand Up @@ -37,3 +43,8 @@ def test_create_emoji_favicon_meta():
if emoji_alias in _str2emoji:
continue
assert create_emoji_favicon_meta(emoji_alias) == emoji_favicon_meta


def test_to_code_point():
for emoji_unicode, emoji_data in tqdm(EMOJI_DATA.items(), total=len(EMOJI_DATA)):
assert re.match("^[0-9a-f\\-]+$", _to_code_point(emoji_unicode))

0 comments on commit 00720b0

Please sign in to comment.