-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
691 additions
and
568 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
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
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
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
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 |
---|---|---|
@@ -1,20 +1,23 @@ | ||
from wikitextparser import ExternalLink | ||
from wikitextparser import ExternalLink | ||
|
||
|
||
def test_externallinks(): | ||
assert ExternalLink('http://example.org').external_links == [] | ||
|
||
|
||
def test_repr(): | ||
assert repr(ExternalLink('HTTP://mediawiki.org')) == \ | ||
"ExternalLink('HTTP://mediawiki.org')" | ||
assert ( | ||
repr(ExternalLink('HTTP://mediawiki.org')) | ||
== "ExternalLink('HTTP://mediawiki.org')" | ||
) | ||
|
||
|
||
def test_numberedmailto_change_none_to_empty(): | ||
s = ( | ||
'[mailto:' | ||
'[email protected]?Subject=URL%20Encoded%20Subject&body=' | ||
'Body%20Textinfo]') | ||
'Body%20Textinfo]' | ||
) | ||
el = ExternalLink(s) | ||
assert s[1:-1] == el.url | ||
assert el.text is None | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from pytest import warns | ||
from pytest import warns | ||
|
||
from wikitextparser import Parameter | ||
|
||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from pytest import mark | ||
from pytest import mark | ||
|
||
from wikitextparser import Section | ||
|
||
|
Oops, something went wrong.